parseArg: Converts string into vector using a separator

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Takes a string an creates a vector using sep as the separator

Usage

1
parseArg(x, sep, trim = T)

Arguments

x

String - if a vector only first element will be considred

sep

String - if vector only first element will be considered

trim

Logical - if TRUE white spaces will be eliminated

Value

Character vector - with elements as characters after splitting by sep

Examples

1
parseArg("A, B, C", sep = ",")

pablo-gar/rSubmitter documentation built on Jan. 26, 2020, 2:08 a.m.