spatial_search {rfishnet2}R Documentation

Filter data by longitude and latitude.

Description

spatialsearch returns the data that falls within radius given radius, and latitude and longitude coordinates.

Usage

spatial_search(df, lat, lon, r)

Arguments

df

A dataframe in FishNet2 standard format (by using read.csv())

lat

Latitude coordinate

lon

Longitude coordinate

r

Radius in kilometers

Details

This is a function to filter data given in the format of a csv file from FishNet2. For this to work properly, the dataframe must have column names using names given in standard csv format from FishNet2 website.

Value

Rows in file that fall within circle with center (lat,long) and radius r

Examples

spatial_search(ictaluridae, 36.12, -77.63, 1)

## Not run: 
spatial_search(ictaluridae, -173,44,10)

## End(Not run)


[Package rfishnet2 version 0.2.0 Index]