Learn R Programming

Overview

dfidx is a small R package which is intended to deal efficiently with data frames when each observation is identified by a combination of values of two variables (indexes). dfidx exports the function dfidx which takes as main argument a data frame and returns a dfidx object and the idx/idx_name functions which respectively return one or all of the indexes and their names. Methods are provided for R's extractors and for some of dplyr's verbs.

Installation

dfidx is on CRAN. Use\ : install.packages("dfidx").

To install the developping version, use\ : remotes::install_github("ycroissant/dfidx").

Copy Link

Version

Install

install.packages('dfidx')

Monthly Downloads

10,453

Version

0.1-1

License

GPL (>= 2)

Maintainer

Yves Croissant

Last Published

June 3rd, 2025

Functions in dfidx (0.1-1)

dplyr

Methods for dplyr verbs
dfidx

Data frames with indexes
idx_name

Get the names of the indexes
munnell

Productivity in the United States
reexports

Objects exported from other packages
methods.dfidx

Methods for dfidx
model.frame.dfidx

model.frame/matrix for dfidx objects
idx

Index for dfidx
unfold_idx

Fold and Unfold a dfidx object