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

Description Usage Arguments Value Examples

View source: R/qc.R

Description

Usage

1
2
3
4
5
qc(...)

qe(...)

text_expand(..., delim = c("\\{", "\\}"))

Arguments

...

characters in text_expand, unquoted names of variables in qc or unquoted expressions in qe.

delim

character vector of length 2 - pair of opening and closing delimiters for the templating tags. By default it is curly brackets. Note that delim will be used in the perl-style regular expression so you need to escape special characters, e. g. use "\\{" instead of "{".

Value

Vector of characters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## qc
qc(a, b, c)
identical(qc(a, b, c), c("a", "b", "c"))

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

## text_expand
i = 1:5
text_expand("q{i}")

i = 1:3
j = 1:3
text_expand("q1_{i}_{j}")

data(iris)
text_expand("'iris' has {nrow(iris)} rows.")

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

expss documentation built on Jan. 8, 2021, 5:38 p.m.