Skip to contents

is_coord3d() tests whether an object has a "Coord3D" class

Usage

is_coord3d(x)

Arguments

x

An object

Value

A logical value

Examples

p <- as_coord3d(x = sample.int(10, 3),
                y = sample.int(10, 3),
                z = sample.int(10, 3))
is_coord3d(p)
#> [1] TRUE