variable column name
1 TopicR table - dynamic column name
Hello, I need a table visual in R for wich the name of a specific colum must get a value from a measure. I'm new to R but until now I could manage to rename a colum and obtain a new name using this code: library(gridExtra) colnames(dataset)[colnames(dataset)=="TotalBase"] <- "NewName" So the original name "TotalBase" was transformed into the "NewName". But how could I pass a measure value? Is it possible to achieve something like this?: colnames(dataset)[colnames(dataset)=="TotalBase"] <- Table[Measure] Kind Regards, LucianSolved