Learn R Programming

optmatch (version 0.9-5)

dimnames,InfinitySparseMatrix-method: Get and set dimnames for InfinitySparseMatrix objects

Description

InfinitySparseMatrix objects represent sparse matching problems with treated units as rows of a matrix and controls units as the columns of the matrix. The names of the units can be retrieved and set using these methods.

Usage

## S3 method for class 'InfinitySparseMatrix':
dimnames(x)

## S3 method for class 'InfinitySparseMatrix': dimnames(x) <- value

Arguments

x
An InfinitySparseMatrix object.
value
A list with two entries: the treated names and control names, respectively.

Value

  • A list with treated and control names.