Learn R Programming

pmdplyr (version 0.3.3)

is_pibble: Check whether an object has been declared as panel data

Description

Checks whether a data set (data.frame or tibble) has been assigned panel identifiers in the pmdplyr format. If so, returns those identifiers.

Usage

is_pibble(.df, .silent = FALSE)

Arguments

.df

Data frame or tibble

.silent

Set to TRUE to suppress output reporting what the panel identifiers are. Defaults to FALSE

Examples

Run this code
# NOT RUN {
data(Scorecard)
Scorecard <- as_pibble(Scorecard, .i = "unitid", .t = "year")
is_pibble(Scorecard)
# }

Run the code above in your browser using DataLab