Index for dfidx
The index of a dfidx
is a dat .frame containing the different
series which define the two indexes (with possibly a nesting
structure). It is stored as a "sticky" data.frame column of the
data.frame and is also inherited by series (of class 'xseries'
)
which are extracted from a dfidx
.
idx(x, n = NULL, m = NULL) ## S3 method for class 'dfidx' idx(x, n = NULL, m = NULL) ## S3 method for class 'idx' idx(x, n = NULL, m = NULL) ## S3 method for class 'xseries' idx(x, n = NULL, m = NULL) ## S3 method for class 'idx' format(x, size = 4, ...)
x |
a |
n, m |
|
size |
the number of characters of the indexes for the format method |
... |
further arguments (for now unused) |
idx is defined as a generic with a dfidx
and a xseries
method.
a data.frame
containing the indexes or a series if a
specific index is selected
Yves Croissant
data("TravelMode", package = "AER") TM1 <- dfidx(TravelMode) idx(TM1) inc <- TM1$income idx(inc) # get the first index idx(TM1, 1) # get the second index idx(TM1, 2) idx(inc, 2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.