keep_top: Keeps only variables that do not vary below the level of the...

Description Usage Arguments

Description

Effectively, this function keeps variables that are 'at the level of' the grouping level specified. For example, if person_id was specified, it would keep only variables that do not vary below the person level (i.e. trait level variables). Grouping variables are always retained. If person_id and daynr were specified, it would keep only variables that do not vary within day (i.e. day level variables).

Usage

1

Arguments

data

The input dataset

grouping

The grouping variables that determine the level below which variables should not vary if they are to be kept.


seanchrismurphy/emacalc documentation built on May 12, 2019, 2:03 p.m.