Learn R Programming

reporttools (version 1.1.3)

varNamesToChar: 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

varNamesToChar(varnam)

Value

Vector of variable names.

Arguments

varnam

Character string, where variable names are separated by commas.

Author

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

Examples

Run this code
nams <- "var1, var2, var3"
varNamesToChar(nams)

Run the code above in your browser using DataLab