Learn R Programming

hpoPlot (version 1.0)

setDimNames: Set Names For Dimensions Of Array

Description

A higher dimensional version of setNames.

Usage

setDimNames(array.object, list.of.dimension.names)

Arguments

array.object
Array to be named
list.of.dimension.names
A list of character vectors whose lengths are the same as dim(array.object).

Value

  • Named array

Examples

Run this code
setDimNames(	
		matrix(1,2,2),
		list(
			c("Row1","Row2"),
			c("Col1","Col2")
		)
	)

Run the code above in your browser using DataLab