Skip to content
Prev 391067 / 398506 Next

Naming files within R code

Hello,

You can read in the files in a `lapply` loop, assign the result to a 
list, say df_list, and

names(df_list) <- c("tay","forth","don")
list2env(df_list, envir = globalenv())


This creates 3 data.frames with those names in the global environment.

Hope this helps,

Rui Barradas

?s 22:02 de 20/03/2022, Nick Wray escreveu: