Re: [R] Naming files within R code

2022-03-20 Thread Rui Barradas
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

[R] Naming files within R code

2022-03-20 Thread Nick Wray
HelloI have data from various Scottish river catchments in the form of csv files. I want to be able to download the files in turn and refer to each one by an assigned name from a vector of names, but within R. So, for example, if my vector of names is c("tay","forth","don") I want to tell R t