create_PolyGrids: Create a Polygon Grid

Description Usage Arguments Value

Description

Create a Polygon Grid that can display the amount of catch taken from specifed grid cell sizes

Usage

1
2
create_PolyGrids(Input, OutputFormat = "ROBJECT", OutputName = NULL, dlon,
  dlat)

Arguments

Input

the name of the input data as a .csv file or an R dataframe. If .csv input then ensure this file is in your set work directory in quotes e.g. "DataFile.csv". The columns of the input should be in the following order: Latitude,Longitude and Value

OutputFormat

can be an R object or ESRI Shapefile. R object is specified as "ROBJECT" and returns a SpatialPolygonDataFrame to your R work enviornment (if this parameter is not specified this is the default). The ESRI Shapefile output is specified as "SHAPEFILE" will write an ESRI Shapefile to your work directory or set file path.

OutputName

if "SHAPEFILE" format is specified then supply the name of the output shapefile in quotes e.g."MyShape", the default is NULL and assumes an "ROBJECT" format

dlon

width of the grid cells in decimal degrees of longitude e.g. dlon=1

dlat

height of the grid cells in decimal degrees of latitude e.g.: dlat=0.5

Value

Returns polygons in R or output to ESRI shapefile format with attributes that summarise the points included in each polygon. These summary attributes include a count ("Count"), maximum ("Max"), minimum ("Min)", mean ("Mean), standard deviation ("StdDev"), median ("Median") and sum ("Sum").


lucymerobinson/CCAMLRGIS documentation built on May 14, 2019, 8:59 a.m.