powered by
Paste each column in a dataframe together.
paste0_columns(df, collapse = ",")
a character
a dataframe
collapse, default is comma
df=data.frame(a=c(1,2,30), b=c('x','y','z')) paste0_columns(df) df=data.frame(a=c(1,2,30),b=c('x','y','z'),c=c(1,7,8)) paste0_columns(df)
Run the code above in your browser using DataLab