Skip to content
Prev 138835 / 398506 Next

dictionary lookup

Duncan Murdoch wrote:
Thank you all for your responses, it certainly pointed me to the right 
direction.
For my purposes, I only had to slightly modify Duncan's suggestion

new_names <- rownames(E)
m <- match(rownames(E), dict$V3)
change <- ( !is.na(m) & dict$V2[m] != "")      
new_names[change] <- as.vector(dict$V2[m[change]] )    

Best wishes, TM