pasteColumns: Paste Columns of Data Frame With Separator

View source: R/column.R

pasteColumnsR Documentation

Paste Columns of Data Frame With Separator

Description

Paste Columns of Data Frame With Separator

Usage

pasteColumns(x, columns = names(x), sep = " ", ...)

Arguments

x

data frame

columns

names of columns to be pasted. Default: all columns

sep

separator character. Default: space (" ")

...

args passed to selectColumns, e.g. do.stop to control whether the function shall stop if not all columns exist

Value

vector of character with each element representing the values of the selected columns of one row, being pasted with the separator character

Examples

x <- data.frame(A = 1:3, B = 2:4)
pasteColumns(x, sep = ";")
  

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.