lookup_xy: Lookup spatial data for a set of points.

Description Usage Arguments Details Value See Also Examples

View source: R/xylookup.R

Description

Lookup spatial data for a set of points.

Usage

1
2
lookup_xy(data, shoredistance=TRUE, grids=TRUE, areas=FALSE,
  asdataframe=TRUE)

Arguments

data

The data frame with columns decimalLongitude and decimalLatitude.

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.

Value

Data frame or list with the values for the different requested fields.

See Also

check_onland check_depth

Examples

1
2
3
4
## Not run: 
lookup_xy(abra, shoredistance = TRUE, grids = TRUE, areas = FALSE)

## End(Not run)

sharksmhi/tryout documentation built on Dec. 27, 2019, 5:34 a.m.