Lookup spatial data for a set of points.
lookup_xy(data, shoredistance=TRUE, grids=TRUE, areas=FALSE, asdataframe=TRUE)
data | The data frame with columns decimalLongitude and decimalLatitude. |
---|---|
shoredistance | Indicate whether the shoredistance should be returned
(default |
grids | Indicate whether the grid values such as temperature and
bathymetry should be returned (default |
areas | Indicate whether the area values should be returned and from
which distance in meters to the provided points (default |
asdataframe | Indicate whether a dataframe or a list should be returned
(default |
Data frame or list with the values for the different requested fields.
When asdataframe
is FALSE
then data is returned in the
same order as the requested data as a list, with for each list item the
requested values. For invalid coordinates NULL
is returned.
When parameter areas
is a positive integer then all areas within a radius of
this distance in meters will be returned. A value of TRUE
is
equivalent to a distance of 0 meters, FALSE
indicates that no area
results are required.
# NOT RUN { lookup_xy(abra, shoredistance = TRUE, grids = TRUE, areas = FALSE) # }