group_write | R Documentation |
group_write
splits a data frame according to (multiple) grouping variables, write out each
part with file name indicating specific groups.
group_write(df, ..., dir = "")
df |
a data frame |
... |
grouping variables |
dir |
output directory. By default, the output files are stored under the current working directory |
group_write
returns the input data frame invisibly.
library(ymisc) group_write(iris, Species) list.files(pattern = "\\.csv$") # Currently, you need to convert `df` into a data frame outside this function # before passing the argument. # For example, `group_write(as.data.frame(Titanic), Sex, Age)` does not work
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.