View source: R/centroidAssigner.R
centroidAssigner | R Documentation |
This function takes a vector of grid codes and returns centroids (center of mass) in lon-lat values.
centroidAssigner(code, what = "isoparalitoral", ...)
code |
Vector with grid codes. |
what |
|
... |
Extra arguments passed to selected method. |
For what = "isoparalitoral"
(default), it allows to use argument old
, for specifying whether
to use old AIP shape (AIPShapefile_old
) o the new (AIPShapefile_new
).
isopCodes <- c(1050, 4043, 17073, 27103)
centroidAssigner(code = isopCodes, what = "isoparalitoral")
marsdenCodes <- c("A6", "B8", "c12")
centroidAssigner(code = marsdenCodes, what = "marsden")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.