I have 9 data frames here, data01 to data09. My question is, how to get the column names of each data frame using for loop in r? The paste syntax didn't work.
for (i in 1: 9) {
print(colnames(paste("data0", i, sep = "")))
}
I have 9 data frames here, data01 to data09. My question is, how to get the column names of each data frame using for loop in r? The paste syntax didn't work.
for (i in 1: 9) {
print(colnames(paste("data0", i, sep = "")))
}