Split a character string into variable names

Description

Transform a given string of variable names, separated by ", ", into a vector of corresponding variable names.

Usage

1

Arguments

varnam

Character string, where variable names are separated by commas.

Value

Vector of variable names.

Author(s)

Kaspar Rufibach (maintainer), kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Examples

1
2
nams <- "var1, var2, var3"
varNamesToChar(nams)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.