col_row_names: Change column and row names of a 'demog_change_component_df'

col_row_namesR Documentation

Change column and row names of a demog_change_component_df

Description

Changing row or columns names of demog_change_component_dfs may result in invalid members of the class. Therefore, the changed object will no longer inherit from class demog_change_component_df (or subclasses) and the attributes specific to those classes will be lost.

Usage

row.names(x) <- value

## Default S3 replacement method:
row.names(x) <- value

## S3 replacement method for class 'demog_change_component_df'
row.names(x) <- value

rownames(x) <- value

## Default S3 replacement method:
rownames(x) <- value

## S3 replacement method for class 'demog_change_component_df'
rownames(x) <- value

colnames(x) <- value

## Default S3 replacement method:
colnames(x) <- value

## S3 replacement method for class 'demog_change_component_df'
colnames(x) <- value

dimnames(x) <- value

## Default S3 replacement method:
dimnames(x) <- value

## S3 replacement method for class 'demog_change_component_df'
dimnames(x) <- value

Arguments

x

a matrix-like R object, with at least two dimensions for colnames.

value

a valid value for that component of dimnames(x). For a matrix or array this is either NULL or a character vector of non-zero length equal to the appropriate dimension.

Value

A data.frame, one-dimensional vector, or scalar depending on the dimensions of the extracted values.

Author(s)

Mark Wheldon

See Also

demog_change_component_df for class definitions.


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.