I have the following code:
supply = vector(length = 64, mode = 'list')
for (i in 1:64) {
supply[[i]] = df3[rownames(df6),]*df6[,i]
names(supply) <- sheetnames
both df3 and df6 have row names, which is use to match the 64 new tables on. In these new tables the row names dissappear (column names are still there). How do I get the row names in my results? I need to export them to Excel including the row names which are matched in the for loop.
**edit
i tried the following:
supply = vector(length = 64, mode = 'list')
for (i in 1:64) {
supply[[i]] = df3[rownames(df6),]*df6[,i]
row.names(supply[[i]]) = row.names(df6)}
but it does not work