Displaying 1 result from an estimated 1 matches for "stnw".
Did you mean:
stn
2003 Nov 05
3
converting column to factor *within* a data frame
...a column with numeric values to be a
factor, but can't figure out how to do this. Also, I do not wish to
write as.factor(x) all the time. I can create a new vector with x <-
factor(x), but the new vector resides outside the attached data frame.
Pascal
> attach(ngrad)
> is.factor(STNW)
[1] FALSE
> ngrad$STNW<-factor(STNW) ## doesn't work
> is.factor(STNW)
[1] FALSE
> is.factor(STNW) <- T ## doesn't work either
Error: couldn't find function "is.factor<-"