powered by
is_coord2d() tests whether an object has a "Coord2D" class
is_coord2d()
is_coord2d(x)
A logical value
An object
p <- as_coord2d(x = sample.int(10, 3), y = sample.int(10, 3)) is_coord2d(p)
Run the code above in your browser using DataLab