OB83 OB83 - 3 months ago 41
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)


Look at the function list2env. Try:

list2env(split(df, df$column), envir = .GlobalEnv)