Displaying 1 result from an estimated 1 matches for "datap3".
Did you mean:
data3
2010 May 11
1
Help with Names
Hi - a newbie question, if someone can please help....
I want to change X1, X2,,.....to X.1 X.2 etc in the names below. I am using
the Principal Component Regression function (pcr) and it seems to want it
this way
> datap3.pcr <- pcr(water ~ X, 10, data = datap3, Validation ="cv")
Error in model.frame.default(formula = water ~ X, data = datap3) :
invalid type (list) for variable 'X'
----------
> names(X)
[1] "X1" "X2" "X3" "X4" "X5&quo...