are_varying {panelr} | R Documentation |
Check if variables are constant or variable over time.
Description
This function is designed for use with panel_data()
objects.
Usage
are_varying(data, ..., type = "time")
Arguments
data |
A data frame, typically of |
... |
Variable names. If none are given, all variables are checked. |
type |
Check for variance over time or across individuals? Default
is |
Value
A named logical vector. If TRUE, the variable is varying.
Examples
wages <- panel_data(WageData, id = id, wave = t)
wages %>% are_varying(occ, ind, fem, blk)
[Package panelr version 0.7.8 Index]