This function checks if an object qualifies as a pseries
object to be checked for pseries features
"pseries" is a wrapper around a "basic class" (numeric, factor,
logical, character, or complex).
To qualify as a pseries, an object needs to have the following features:
"pseries" and there are at least two classes
"pseries" and the basic class),
have an appropriate index attribute (defines the panel structure),
A logical indicating whether the object is a pseries (
or not (
pseries() for some computations on pseries and some
1 2 3 4 5 6 7 8 9 10 11
# Create a pdata.frame and extract a series, which becomes a pseries data("EmplUK", package = "plm") Em <- pdata.frame(EmplUK) z <- Em$output class(z) # pseries as indicated by class is.pseries(z) # and confirmed by check # destroy index of pseries and re-check attr(z, "index") <- NA is.pseries(z) # now FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.