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.

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

13,071

Version

0.2-0

License

GPL (>= 2)

Maintainer

Yves Croissant

Last Published

July 8th, 2025

Functions in dfidx (0.2-0)

unfold_idx

Fold and Unfold a dfidx object
munnell

Productivity in the United States
methods.dfidx

Methods for dfidx
dfidx

Data frames with indexes
idx

Index for dfidx
model.frame.dfidx

model.frame and model.matrix methods for dfidx objects
idx_name

Get the name and the position of the index column