r - How to combine the values in a column of dataframe -
i have dataframe 2 column. want concatenate values in sec column , homecoming string. how can in r?
you can utilize paste
appropriate delimiter. here, using ''
. can specify -
, _
or else.
paste(df$col2, collapse="")
if there nas
utilize na.omit
paste(na.omit(df$v2), collapse="")
r data.frame
No comments:
Post a Comment