Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

data(Scorecard)
Scorecard <- as_pibble(Scorecard, .i = "unitid", .t = "year")
is_pibble(Scorecard)

pmdplyr

'dplyr' Extension for Common Panel Data Maneuvers

v0.3.3
MIT + file LICENSE
Authors
Nick Huntington-Klein [aut, cre] (<https://orcid.org/0000-0002-7352-3991>), Philip Khor [aut] (<https://orcid.org/0000-0002-8333-1256>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.