Answers for "save data frames in a loop r"

R
0

save data frames in a loop r

for(i in 1:n){
	assign(paste0("name", i), df) # saves to environment
}
# then you can for example
df_list <- list(name1 = name1,
                name2 = name2,
                ...)
Posted by: Guest on March-01-2021

Browse Popular Code Answers by Language