Skip to content

Conversation

@yasirs
Copy link
Contributor

@yasirs yasirs commented May 3, 2016

sapply returns a matrix when it should return a list

#263

@yasirs
Copy link
Contributor Author

yasirs commented May 3, 2016

I seem to be having a problem using my supposed fix because of the way R assigns to data frames. Consider:

> a <- data.frame(a=c(1,2), b=c(2,3), c=c("a,b","c,d"), stringsAsFactors = F)
> a$c <- strsplit(a$c, ",")

Now, a simple re-assignment fails:

> a[,3] <- a[,3]
Warning message:
In `[<-.data.frame`(`*tmp*`, , 3, value = list(c("a", "b"), c("c",  :
  provided 2 variables to replace 1 variables

@codecov-io
Copy link

codecov-io commented Sep 15, 2016

Current coverage is 79.40% (diff: 52.94%)

Merging #264 into master will decrease coverage by 0.13%

Powered by Codecov. Last update 2c1b479...78a7c64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants