Learn R Programming

sjSDM (version 1.0.6)

butterflies: butterflies

Description

This dataset is from tools:::Rd_expr_doi("10.1111/2041-210X.13106").

Usage

butterflies

Arguments

Format

A 'list': List of 3.

env

data.frame with 4 environmental covariates

PA

Presence-absence data for 55 butterfly species

lat_lon

Coordinates for the sites

Author

Maximilian Pichler

Details

This is a dataset about butterfly communities. It consists of 2609 sites and 55 species.

Examples

Run this code
if (FALSE) {
  PA = butterflies$PA
  E = butterflies$env
  LatLon = butterflies$lat_lon
  
  m = sjSDM(PA, 
            scale(E), 
            spatial = DNN(scale(LatLon), formula = ~0+.), 
            se = TRUE,
            iter = 20L, # increase to 100
            step_size = 200L,
            verbose = FALSE)
  summary(m)
  plot(m)

}

Run the code above in your browser using DataLab