set_dim: Setting dimensions within a pipe

Description Usage Arguments Value Examples

View source: R/utilities_SOIR.R

Description

Setting dimensions in pipe-like environment from e.g. magrittr

Usage

1

Arguments

x

Numeric matrix

dim

Vector containing the dimension to set

Value

same matrix with new dimension

Examples

1
2
require(magrittr)
rnorm(100) %>% set_dim(c(20,5)) %>% head

RaphaelRe/SOIR documentation built on May 28, 2019, 12:19 p.m.