Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix Issue 263 #264

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Attempt to fix Issue 263 #264

wants to merge 10 commits into from

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.

None yet

2 participants