I\'m trying to make a decision tree using rpart using a data frame that has ~200 columns. Some of these columns have numbers in their names, some have special characters (e.
This works:
dat <- data.frame(M=rnorm(10),'A/B'=1:10,check.names=F) > lm(M~`A/B`,dat) Call: lm(formula = M ~ `A/B`, data = dat) Coefficients: (Intercept) `A/B` -1.0494 0.1214