Concatenating two columns together in R with NAs

后端 未结 0 1224
天命终不由人
天命终不由人 2021-01-28 08:25

I want to create a column (outcome) that would be a concatenation of two other columns.

col1 col2     Outcome
A     NA       A
A     B        AB
NA    NA       NA         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题