set_dim: Set dimensions of an Object

View source: R/main_Ipaper.R

set_dimR Documentation

Set dimensions of an Object

Description

Set dimensions of an Object

Usage

set_dim(x, dim)

set_dimnames(x, value)

Arguments

x

an R object, for example a matrix, array or data frame.

dim

integer vector, see also base::dim()

value

For the default method, either NULL or a numeric vector, which is coerced to integer (by truncation).

See Also

base::dim

Examples

x <- 1:12
set_dim(x, c(3, 4))

rtrend documentation built on June 22, 2024, 11:39 a.m.