This has got to be super simple, but I caot find it anywhere. I am trying to create a new column (field) in R that looks at two other columns--filling in blanks of one column with the values of another, e.g. below:
name age1 age2 age
Bob 45 45 45
Clint 33 33
Dave 48 15 48
As you can see from the above, if age2 <> age1, then age1 should be the default value.
Thanks for your help!
