knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Loading necessary packages:
library(terra) library(testPackage)
Inspect datasets from testPackage
head(sites) r <- terra::rast(system.file("extdata", "sitesr.tif", package="testPackage")) plot(r)
The function spp_rich
can compute species richness for vector/matrix data
rich_vec <- spp_rich(sites) rich_vec
The value of rr is: r rich_vec
The function spp_rich
can compute species richness for raster/spatial data
rrich <- spp_rich(r) plot(rrich)
bench::mark( raster = { spp_rich(r) }, check = T )
Non ordered list
Ordered list
## R Markdown https://rmarkdown.rstudio.com/index.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.