Learn R Programming

crunch (version 1.25.0)

importMultitable: Import a Multitable

Description

Allows you to import a multitable from a different dataset

Usage

importMultitable(data, multitable, ...)

Arguments

data

a CrunchDataset in which to create the multitable

multitable

an object of class Multitable that you want copied to the new dataset

...

Additional multitable attributes to set. Options include name and is_public.

Value

An object of class Multitable

Examples

Run this code
# NOT RUN {
m <- newMultitable(~ gender + age4 + marstat, data=ds)
copied_m <- importMultitable(another_ds, m)
name(copied_m) # [1] "gender + age4 + marstat"
# }

Run the code above in your browser using DataLab