convertMatrixType {BBmisc}R 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.


[Package BBmisc version 1.13 Index]