Saving a new dataset as an object

If you'd like to save the output of your wrangling as an object, you will need to use the <- operator

`r dataframe_name_new <- r dataframe_name %>%group_by(r colnames(df_character_select)) %>%summarise(mean(r colnames(df_numeric_select)))`

*Assigning the object the same name (i.e. r dataframe_name) will overwrite the object


Saving a new dataset as a file

To save `r dataframe_name_new` as a new file (e.g. csv), run the following:

write_csv(r dataframe_name_new, "r dataframe_name_new.csv")



matthewhirschey/bespokelearnr documentation built on Oct. 11, 2020, 12:57 a.m.