View source: R/reorder_list_numeric.R
reorder_list_numeric | R Documentation |
This function takes a list of data frames and reorders them based on the numeric values embedded within their names.
reorder_list_numeric(df_list)
df_list |
A list of data frames. |
A list of data frames ordered by the numeric values extracted from their names.
df1 <- data.frame(x = 1:3)
df713 <- data.frame(y = 4:6)
df42 <- data.frame(z = 7:9)
my_list <- list("42" = df42, "713" = df713, "1" = df1)
reordered_list <- reorder_list_numeric(my_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.