Learn R Programming

scan (version 0.56)

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")

Value

An scdf

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').

Examples

Run this code
Leidig2018 %>% add_l2(Leidig2018_l2)

Run the code above in your browser using DataLab