Skip to content

Instantly share code, notes, and snippets.

@Dysp
Created July 8, 2019 12:53
Show Gist options
  • Save Dysp/23ecbe76f4baa5ca148e3bbcb40b5a73 to your computer and use it in GitHub Desktop.
Save Dysp/23ecbe76f4baa5ca148e3bbcb40b5a73 to your computer and use it in GitHub Desktop.
for (name in names(allData) ) {
if(is.numeric(allData[[name]])) {
new_tibble <- allData %>%
group_by(Label) %>%
summarise(name = mean(allData[[name]], na.rm = TRUE))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment