Learn R Programming

resourcecode (version 0.5.1)

closest_point_spec: Find the closest point of the SPEC grid to the specified position

Description

Find the closest point of the SPEC grid to the specified position

Usage

closest_point_spec(x, lat = NULL, closest = 1L, ...)

Value

a list with two components: the closest point(s) of the grid and the distance (s).

Arguments

x

vector of coordinates in the form longitude/latitude data frame

lat

alternatively, x and lat can be vector of the same length

closest

an integer to specify the number of point to output.

...

currently unused

Examples

Run this code
semrev_west <- closest_point_spec(c(-2.786, 47.239))
semrev_west

Run the code above in your browser using DataLab