Relative Content

Tag Archive for rsubset

Replace set of words with another set of words in R

It is a simple question. I have a list of country names. However, I wanted to change few names with correct names. So, I have two more vectors; one with names to be changed, and second with correct names. See the example:

subset in r based on multiple columns

Im not sure how to perform this type of subset. In the code below, I have 4 variables depth in meters, group , value and cutoff in meters. I interpolated the variables from death of 5 to the max depth.