Create a data.frame from the Portal rodent data with specified arguments, each row corresponds to a newmmoonnumber, and missing data are interpolated.

make_portal_block(path = portalr::get_default_data_path(),
  filter_q = NULL, output = "abundance", plots = c(2, 4, 8, 11, 12,
  14, 17, 22), ...)

Arguments

path

either the file path that contains the PortalData folder or "repo", which then pulls data from the PortalData GitHub repository

filter_q

the numerical quantile by which to filter species. Only species that are present at least filter_q fraction of the time are included; default (NULL) keeps all species.

output

specify whether to return "abundance", or "biomass", or "energy"

plots

specify subset of plots; can be a vector of plots, or specific sets: "all" plots or "Longterm" plots (plots that have had the same treatment for the entire time series)

...

arguments passed to summarize_rodent_data

Value

a data.frame with columns for censusdate, and each species