I have the following problem:
I have a list of names from which I created dataframes for each name with the following code:
for (i in 1:nrow(list_of_names)) {
assign(paste(list_of_names[i,1]), data.frame(0, 0))
}
list_of_names is a dataframe with character values in rows 1:9
Now, I would like to use each character in my list_of_names to get access to the respective dataframe I created.
For example I would like to change the column names in each dataframe with a loop:
for (i in 1:nrow(list_of_names)) {
colnames(paste(list_of_names[i,1])) <- c("Date", "Value")
}
However, my current tries did not work out. Does anyone have an idea how to solve this? Or is this not possible?
Many thanks!