Skip to content
Prev 303208 / 398503 Next

if else elseif for data frames

You might look at the 'recode' that is part of the 'car' package.  You
can also setup a dataframe with two columns; one with the current
value and one with the new value you want, then you can use 'merge' or
'match' to create your new column.  If you have provided some sample
data, I could have provided examples, but now left as an exercise for
the reader.

On Sun, Aug 12, 2012 at 9:07 PM, Sachinthaka Abeywardana
<sachin.abeywardana at gmail.com> wrote: