[R] help on cut?
nina at math.uni-bremen.de
Wed Jan 29 17:37:03 CET 2003
I'm trying to recode a variable.
I need the data.vector to have the same values as the labels.
To make it clear:
as.numeric(y) returns something like a vector 1 3 3 2 2 1 4 2 3 4 .
I need something like 3 7 7 6 6 3 7 9 6 7 9 for further use.
I might be using the wrong function but a loop seems to be inefficient as I
need to do it about 60 times with varying length of labels
Is there a quick solution?
Thanks for any help in advance!
R.1.6.0 on Windows2000
More information about the R-help