OB83 OB83 - 7 days ago 10
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

Look at the function list2env. Try:

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