Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df$New <- apply(df, 1, function(x) paste(x, collapse = ","))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement