OB83 OB83 - 1 year ago 77
R Question

How to make different dataframes using split

I know the split command is the easiest way to turn a df into a list of df objects, but how can they be assigned to different (seperated) dataframes?

df.List <- split(df, df$column)

Answer Source

Look at the function list2env. Try:

list2env(split(df, df$column), envir = .GlobalEnv)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download