Learn R Programming

icesVMS (version 1.1.4)

get_csquare: 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)

Value

a data.frame of VMS data

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.

Examples

Run this code
# \donttest{
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")
# }

Run the code above in your browser using DataLab