I have a list of dataframes dataframes_list. For an example, I put the dput(dataframes_list) at the bottom. I want to sort all dataframes in the li
dataframes_list
dput(dataframes_list)
Use lapply:
lapply
sorted_dataframes_list <- lapply(dataframes_list, function(df){ df[order(df$enrichment),] })