Learn R Programming

scan (version 0.53)

add_l2: Add level 2

Description

Add level 2 variables from a level 2 dataset to an scdf file

Usage

add_l2(data, data_l2, cvar = "case")

Arguments

data

A single-case data frame. See scdf to learn about this format.

data_l2

A level 2 dataset.

cvar

Character string with the name of the "case" variable in the L2 dataset (default is 'case').

Value

An scdf

Examples

Run this code
# NOT RUN {
Leidig2018 %>% add_l2(Leidig2018_l2)
# }

Run the code above in your browser using DataLab