convertMatrixType: Converts storage type of a matrix.

View source: R/convertMatrixType.R

convertMatrixTypeR Documentation

Converts storage type of a matrix.

Description

Works by setting mode.

Usage

convertMatrixType(x, type)

Arguments

x

[matrix]
. Matrix to convert.

type

[character(1)]
New storage type.

Value

[matrix].

Note

as.mytype drops dimension when used on a matrix.


BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.