is.point: Check the argument is a point of a given dimension

View source: R/AuxGeometry.R

is.pointR Documentation

Check the argument is a point of a given dimension

Description

Returns TRUE if the argument p is a numeric point of dimension dim (default is dim=2); otherwise returns FALSE.

Usage

is.point(p, dim = 2)

Arguments

p

A vector to be checked to see it is a point of dimension dim or not.

dim

A positive integer representing the dimension of the argument p.

Value

TRUE if p is a vector of dimension dim.

Author(s)

Elvan Ceyhan

See Also

dimension

Examples

## Not run: 
A<-c(-1.22,-2.33); B<-c(2.55,3.75,4)
is.point(A)
is.point(A,1)

is.point(B)
is.point(B,3)

## End(Not run)


elvanceyhan/pcds documentation built on June 29, 2023, 8:12 a.m.