restring: Auxiliary function that converts an expression of variable...

Description Usage Arguments Value Examples

View source: R/wweights.R

Description

Auxiliary function that converts an expression of variable names into a vector of strings.

Usage

1
restring(vector, substitute = TRUE, command = "c")

Arguments

vector

An expression of a list of variable names.

substitute

Boolean option of whether or not we wish to use the substitute command when implementing this function. Note that this substitutes the argument of the function. If substitute = FALSE, then the function will instead treat the arguments as variables, and substitute in their values.

command

character, the name of the function defining the vector or list, e.g. "c", "list", "l". This let's the function determine how many characters in front to remove.

Value

A vector of variable names (strings).

Examples

1
2
3
4
a <- 4
b <- 5
ivmte:::restring(c(a, b), substitute = TRUE)
ivmte:::restring(c(a, b), substitute = FALSE)

ivmte documentation built on Sept. 17, 2021, 5:06 p.m.