Learn R Programming

spherepc (version 0.1.7)

Dist.pt: The number of distinct points.

Description

This function calculates the number of distinct point in the given data.

Usage

Dist.pt(data)

Arguments

data

matrix or dataframe consisting of spatial locations with two columns. Each row represents longitude and latitude.

Value

a numeric.

Details

This function calculates the number of distinct points in the given data.

Examples

Run this code
# NOT RUN {
Dist.pt(rbind(c(0, 0), c(0, 1), c(1, 0), c(1, 1), c(0, 0)))
# }

Run the code above in your browser using DataLab