This question may seem stupid, but I am curious about how to access a column by a column name with quote in data.frame, such as:
col.name <- colnames(feature)[i] # feature is a data frame, i is the index
feature$col.name # but this returns NULL
This question may seem stupid, but I am curious about how to access a column by a column name with quote in data.frame, such as:
col.name <- colnames(feature)[i] # feature is a data frame, i is the index
feature$col.name # but this returns NULL