names.replace: 'names<-' S3 Replacement method for 'blockmatrix' object

Description Usage Arguments Value Author(s) Examples

Description

names<- S3 Replacement method for blockmatrix object

Usage

1
2
## S3 replacement method for class 'blockmatrix'
 names(x) <- value

Arguments

x

a blockmatrix object

value

character vector with the new names replacing the old names

Value

x with new names and replaced names in the value matrix.

Author(s)

Emanuele Cordano

Examples

1
2
3
4
5
6
7
library(blockmatrix)

M <- as.blockmatrix(array(rnorm(100),c(10,10)),nrow=2,ncol=2)


pn <- paste("p",names(M),sep="")
names(M) <- pn

ecor/blockmatrix documentation built on May 15, 2019, 8:54 p.m.