Skip to content

Instantly share code, notes, and snippets.

@kleinlennart
Created October 25, 2020 15:47
Show Gist options
  • Save kleinlennart/f3fc8b57f463baa61ddc69b5a56bd950 to your computer and use it in GitHub Desktop.
Save kleinlennart/f3fc8b57f463baa61ddc69b5a56bd950 to your computer and use it in GitHub Desktop.
Unlist a column rowwise
dat <- dat %>%
rowwise() %>%
mutate(bundesland = unlist(bundesland),
community = unlist(community),
fach = unlist(fach)) %>%
ungroup() # important to remove rowwise_df class! (slows down all other operations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment