utils-colIds: Set and retrieve column/row names

IdsR Documentation

Set and retrieve column/row names

Description

Sets and retrieves column and row names. The functions are for compatibility with SPlus.

Usage

colIds(x, ...)
rowIds(x, ...)

Arguments

x

a numeric matrix.

...

passed on to colnames or rownames.

Details

Usually in R the functions colnames and rownames are used to retrieve and set the names of matrices. The functions rowIds and colIds, are S-Plus like synonyms.

Examples

## Create Pascal Matrix:
P <- pascal(3)
P
 
rownames(P) <- letters[1:3]
P   
   
colIds(P) <- as.character(1:3)
P                            

fBasics documentation built on Sept. 11, 2024, 6:34 p.m.