[R] data manipulation
smartpink111 at yahoo.com
Fri Nov 22 18:58:42 CET 2013
You could use either:
names(vec1) <- gsub("\\d+","",names(vec1))
I have a list like this:
neutral_classes = list(A = 71:100, B = 46:70, C = 21:45, D = 0:20)
and I'm trying to return the letter of the named vector for with an integer belong. For example, B if I use the value 50.
Any help would be greatly appreciated.
More information about the R-help