vars: Multiple Abstract Descriptions

Description Usage Arguments Details Examples

Description

Concatenate or generate multiple variable descriptions

Usage

1
2
3
## S3 method for class 'var'
c(...)
as.vars(object)

Arguments

object

an object

...

a list of variable objects

Details

c() can be used to concatenate multiple variable objects; the corresponding generics also work for the resulting object. as.vars() tries to infer a formal description from data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
   f <- factor_var("x", levels = LETTERS[1:3])
   n <- numeric_var("y")

   fn <- c(f, n)
   variable.names(fn)
   support(fn)
   is.bounded(fn)
   mkgrid(fn, n = 9)

   as.vars(iris)

variables documentation built on June 17, 2021, 3 p.m.

Related to vars in variables...