Skip to contents

Cast a matrix to the desired type

Usage

cast_matrix(x, fn)

Arguments

x

A matrix

fn

A bare function such as as.character or as.integer

Value

A matrix of the desired type