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

Mutate should support list-columns #555

Closed
hadley opened this issue Aug 22, 2014 · 1 comment
Closed

Mutate should support list-columns #555

hadley opened this issue Aug 22, 2014 · 1 comment
Assignees
Milestone

Comments

@hadley
Copy link
Member

@hadley hadley commented Aug 22, 2014

e.g.

df <- data.frame(x = c("a;b", "c;d;e"), stringsAsFactors = FALSE) 
df %>%
   mutate(pieces = strsplit(x, ";"))

just need to ensure that length of list is correct. No other checking needed.

@hadley hadley added this to the 0.3.1 milestone Aug 26, 2014
@hadley hadley removed this from the 0.3.1 milestone Aug 26, 2014
@hadley hadley added this to the 0.3 milestone Aug 26, 2014
@hadley
Copy link
Member Author

@hadley hadley commented Aug 26, 2014

I'd really like to get this into the next version because it ties into some stuff I've been working on in tidyr.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants