Answers for "how to combine two columns as x+-y in r"

R
0

combine ro columns in r

df$x <- paste(df$n,df$s)
 df
#   n  s     b    x
# 1 2 aa  TRUE 2 aa
# 2 3 bb FALSE 3 bb
# 3 5 cc  TRUE 5 cc
Posted by: Guest on September-08-2020

Code answers related to "how to combine two columns as x+-y in r"

Browse Popular Code Answers by Language