Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vars

Multiple Abstract Descriptions


Description

Concatenate or generate multiple variable descriptions

Usage

## 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

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

Variable Descriptions

v1.1-0
GPL-2
Authors
Torsten Hothorn [aut, cre] (<https://orcid.org/0000-0001-8301-0471>)
Initial release
2021-03-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.