Displaying 1 result from an estimated 1 matches for "factord".
Did you mean:
factor
2007 Mar 29
3
Vector indexing question
Suppose you have 4 related vectors:
a.id<-c(1:25, 1:25, 1:25)
a.vals <- c(101:175) # same length as a.id (the values for those IDs)
a.id.levels <- c(1:25)
a.id.ratings <- rep(letters[1:5], times=5) # same length as a.id.levels
What I would like to do is specify a rating from a.ratings (e.g. "e"),
get the vector of corresponding IDs from a.id.levels (via