paste0_columns: Paste Columns Together

View source: R/paste0_columns.R

paste0_columnsR Documentation

Paste Columns Together

Description

Paste each column in a dataframe together.

Usage

paste0_columns(df, collapse = ",")

Arguments

df

a dataframe

collapse

collapse, default is comma

Value

a character

Examples

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)


do documentation built on Sept. 12, 2024, 6:27 a.m.