I have column name in a variable. I want to acess that column from a csv how will I do it?.
What I have tried:
RawData <- read.csv("DataCombined.csv")
colName <- grp2$Col1
I want to access RawData$colName. But I am getting error saying $colName is not valid.
Can anyone help me in getting the value.