get_csquare: Download C-square information

View source: R/get_csquare.R

get_csquareR Documentation

Download C-square information

Description

Download a data.frame of information on a set of C-squares.

Usage

get_csquare(c_square, stat_rec, ices_area, ecoregion, convert2sf = FALSE)

Arguments

c_square

character 0.05 degree c-square name

stat_rec

ICES statistical rectangle

ices_area

ICES area

ecoregion

ICES ecoregion

convert2sf

logical, default FALSE, should an simple features object be returned if the sf package is installed?

Details

If the sf package is installed then a simple features object will be returned, if convert2sf flag is set to TRUE.

Value

a data.frame of VMS data

Examples


sq40F3 <- get_csquare(stat_rec = "40F3")

# if the sf package is installed, an simple feature object will be returned
 NS <- get_csquare(ecoregion = "Greater North Sea", convert2sf = TRUE)
 plot(NS["ices_area"], border = "transparent")


ices-tools-prod/icesVMS documentation built on April 24, 2023, 2:31 a.m.