Revision | b2e931a569e59021f3879d72e48f18945f2f7c16 (tree) |
---|---|
Zeit | 2024-01-12 06:26:12 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A simple function to turn a list of dataframes into a tibble.
@@ -7408,3 +7408,12 @@ | ||
7408 | 7408 | |
7409 | 7409 | } |
7410 | 7410 | |
7411 | + | |
7412 | +##convert simple list to dataframe | |
7413 | + | |
7414 | +list_to_df <- function(mylist, myid=NULL){ | |
7415 | + res <- mylist |> | |
7416 | + bind_rows(.id=myid) | |
7417 | + return(res) | |
7418 | + | |
7419 | +} |