coo_check: Checks shapes

View source: R/coo-utilities.R

coo_checkR Documentation

Checks shapes

Description

A simple utility, used internally, mostly in the coo functions and methods. Returns a matrix of coordinates, when passed with either a list or a matrix of coordinates.

Usage

coo_check(coo)

Arguments

coo

matrix of ⁠(x; y)⁠ coordinates or any Coo object.

Value

matrix of ⁠(x; y)⁠ coordinates or a Coo object.

Examples

#coo_check('Not a shape')
#coo_check(iris)
#coo_check(matrix(1:10, ncol=2))
#coo_check(list(x=1:5, y=6:10))

Momocs documentation built on Jan. 13, 2026, 1:06 a.m.

Related to coo_check in Momocs...