Lookup spatial data for a set of points.
Arguments
- data
The data frame with columns sample_longitude_dd and sample_latitude_dd.
- shoredistance
Indicate whether the shoredistance should be returned (default
TRUE
).- grids
Indicate whether the grid values such as temperature and bathymetry should be returned (default
TRUE
)- areas
Indicate whether the area values should be returned and from which distance in meters to the provided points (default
FALSE
).- asdataframe
Indicate whether a dataframe or a list should be returned (default
TRUE
).
Details
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.