spenv

knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE
)

Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. Build Status

spenv - add environmental data to spatial data

Docs: https://sckott.github.io/spenv/

Package API

Data sources

List of datasources on Google Sheets

Use cases

I want data...

Install

remotes::install_github("sckott/spenv")
library("spenv")

Example: pt env data

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]]

Example: gridded env data

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"

Contributors

Meta



ropenscilabs/spenv documentation built on Sept. 22, 2020, 4:46 p.m.