qc: Create vector of characters from unquoted strings (variable...

View source: R/qc.R

qcR Documentation

Create vector of characters from unquoted strings (variable names)

Description

  • qc It is often needed to address variables in the data.frame in the such manner: dfs[ , c("var1", "var2", "var3")]. qc ("quoted c") is a shortcut for the such cases to reduce keystrokes. With qc you can write: dfs[ , qc(var1, var2, var3)].

  • qe returns list of expression.

Usage

qc(...)

qe(...)

Arguments

...

unquoted names of variables in qc or unquoted expressions in qe.

Value

Vector of characters or expressions

Examples


## qc
qc(a, b, c)
identical(qc(a, b, c), c("a", "b", "c"))

mtcars[, qc(am, mpg, gear)]

## qe
qe(mrset(a1 %to% a6), mrset(b1 %to% b6), mrset(c1 %to% c6))

expss documentation built on Nov. 10, 2022, 6:14 p.m.