I am using R version 3.0.2 in Windows 7.
I am loading a CSV table into R, and some of the column names have parentheses such as P (A) or P (A | B). If i try
whatever<- read.csv("C:/dir/name.csv", header=TRUE);
hist(whatever$P(A|B));
I get an error
Error: unexpected symbol in "hist(whatever$P(A|B"
Can I use column names with parentheses in R or change the column names to alphanumeric?
source
share