Using columns with special characters in formulae in R

前端 未结 3 916
一向
一向 2021-01-18 02:06

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.

3条回答
  •  别那么骄傲
    2021-01-18 03:00

    Joran's comment on my question is the answer - I didn't know of the existence of make.names()

    Joran, if you reply as an answer I'll mark you as correct. Cheers!

提交回复
热议问题