{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/tidyr/issues/69","labels_url":"https://api.github.com/repos/hadley/tidyr/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/hadley/tidyr/issues/69/comments","events_url":"https://api.github.com/repos/hadley/tidyr/issues/69/events","html_url":"https://github.com/hadley/tidyr/pull/69","id":64263771,"number":69,"title":"Add nest_string()/unnest_string() functions","user":{"login":"aaronwolen","id":1067915,"avatar_url":"https://avatars.githubusercontent.com/u/1067915?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronwolen","html_url":"https://github.com/aaronwolen","followers_url":"https://api.github.com/users/aaronwolen/followers","following_url":"https://api.github.com/users/aaronwolen/following{/other_user}","gists_url":"https://api.github.com/users/aaronwolen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronwolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronwolen/subscriptions","organizations_url":"https://api.github.com/users/aaronwolen/orgs","repos_url":"https://api.github.com/users/aaronwolen/repos","events_url":"https://api.github.com/users/aaronwolen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronwolen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-25T13:05:22Z","updated_at":"2015-03-30T18:15:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hadley/tidyr/pulls/69","html_url":"https://github.com/hadley/tidyr/pull/69","diff_url":"https://github.com/hadley/tidyr/pull/69.diff","patch_url":"https://github.com/hadley/tidyr/pull/69.patch"},"body":"This PR slightly modifies `unnest()` so the transform step from the example isn't necessary and can just be written as:\r\n\r\n```\r\ndf <- data.frame(\r\n  x = 1:3,\r\n  y = c(\"a\", \"d,e,f\", \"g,h\"),\r\n  stringsAsFactors = FALSE\r\n)\r\nunnest(df, y)\r\n```\r\n\r\nI'm often doing these kind of unnesting operations and just wanted to save myself some typing by letting `unnest()` handle the string splitting. \r\n\r\nThis also adds a `nest()` function so it's possible to round trip:\r\n\r\n```\r\ndf %>% unnest(y) %>% nest(y)\r\n```"},"comment":{"url":"https://api.github.com/repos/hadley/tidyr/issues/comments/87778172","html_url":"https://github.com/hadley/tidyr/pull/69#issuecomment-87778172","issue_url":"https://api.github.com/repos/hadley/tidyr/issues/69","id":87778172,"user":{"login":"aaronwolen","id":1067915,"avatar_url":"https://avatars.githubusercontent.com/u/1067915?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronwolen","html_url":"https://github.com/aaronwolen","followers_url":"https://api.github.com/users/aaronwolen/followers","following_url":"https://api.github.com/users/aaronwolen/following{/other_user}","gists_url":"https://api.github.com/users/aaronwolen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronwolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronwolen/subscriptions","organizations_url":"https://api.github.com/users/aaronwolen/orgs","repos_url":"https://api.github.com/users/aaronwolen/repos","events_url":"https://api.github.com/users/aaronwolen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronwolen/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T18:15:29Z","updated_at":"2015-03-30T18:15:29Z","body":"Thanks for the comments. I see your point about `nest_string()` and removed it to wrap up this PR.\r\n\r\nAny interest in extending `unnest()` (and `unnest_string()`) to accept multiple columns as suggested in #44? "}}