Skip to contents

Coerce to matrix

Usage

# S4 method for class 'spatLocsObj'
as.matrix(x, id_rownames = TRUE, ...)

Arguments

x

object to coerce

id_rownames

logical. Retain the spatial IDs as the rownames

...

additional params to pass (none implemented)

Value

matrix

See also

Other As coercion functions: as.data.table(), as.points(), as.polygons(), r_spatial_conversions

Examples

sl <- GiottoData::loadSubObjectMini("spatLocsObj")
m <- as.matrix(sl)