خرید بک لینک

Vote count: 0

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!

asked 22 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 1 تير 1395 ساعت: 1:30

صفحه بندی