SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
> data[match(as.character(data$Code), selected, nomatch = FALSE), ] Code Value 1 A 1 2 B 2 1.1 A 1 1.2 A 1