keep_bottom: Keeps only variables that -do- vary within the grouping...

Description Usage Arguments

Description

Effectively, this function keeps variables that are -not- invariant below the grouping level specified. For example, if person_id was specified, it would keep only variables that do vary below the person level. It does this by calling keep_top and excluding anything that does not vary below the person level (i.e. trait level variables). If person_id and daynr were specified, it would keep only variables that vary below the day level (i.e. momentary variables). Grouping variables are always retained.

Usage

1

Arguments

data

The input dataset

grouping

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


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