knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
spenv
- add environmental data to spatial data
Docs: https://sckott.github.io/spenv/
sp_mutate
- get env data for occ data input - not ready yetsp_extract_gridded
- extract env gridded datasp_extract_pt
- extract env point datasp_query
- query for env data - not ready yetfind_locs
- find locations/stations/etc. based on occ data input - internal fxn used in sp_mutate
List of datasources on Google Sheets
I want data...
remotes::install_github("sckott/spenv")
library("spenv")
file <- system.file("examples", "obis_mola_mola.csv", package = "spenv") dat <- read.csv(file) head(dat)
res <- sp_extract_pt(x = dat[1:10,], radius = 100) res[[1]]
library("spocc") res <- occ(query = 'Mola mola', from = 'obis', limit = 200) res_df <- occ2df(res) out <- sp_extract_gridded(res_df) head(out)
Map it
"map"
spenv
in R doing citation(package = 'spenv')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.