getISO3: getISO3

Description Usage Arguments Value See Also Examples

View source: R/visibility.R

Description

Get point values from the getMap

Usage

1
2
3
4
5
6
7
8
getISO3(
  pp,
  crs_pp = 4326,
  col = "ISO3",
  resol = "low",
  coords = c("LONG", "LAT"),
  ask = FALSE
)

Arguments

pp

Simple Feature Points or coordinate matrix/data.frame

crs_pp

The CRS of the points

col

Which column/s should be returned

resol

The search resolution. The options are "coarse","low", "less islands","li","high". For "high" you need to install the package rworldxtra

coords

The column names of the point matrix

ask

A boolean, to ask which columns can be returned

Value

A character vector

See Also

Other Helper Functions: dup_coords(), getDEM(), get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), readintegerSel(), readinteger(), splitAt(), windata_format()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(sf)
points = cbind(c(4488182.26267016, 4488852.91748256), 
               c(2667398.93118627, 2667398.93118627))
getISO3(pp = points, ask = TRUE, crs_pp = 3035)

points <- as.data.frame(points)
colnames(points) <- c("x","y")
points <- st_as_sf(points, coords = c("x","y"))
st_crs(points) <- 3035
getISO3(pp = points, crs_pp = 3035)

## End(Not run)

windfarmGA documentation built on May 5, 2021, 5:08 p.m.