min_hpd_inc_area_df | R Documentation |
This is a convenient wrapper that lets you pass in a data frame of bird names with lats and longs and a rasterStack or rasterBrick and it returns the min hpd inclusion area for each bird in a tbl_df-ed data frame.
min_hpd_inc_area_df(birds, R)
birds |
a data frame that minimally has columns |
R |
a rasterStack or rasterBrick of posteriors that each bird originated from each of the cells. The names of the layers must correspond to the ID column in kbirds. |
This returns a list with three components:
area the minimum hpd inclusion area as a data frame with columns "Short_Name" and "min_hpd_area"
missingFromRastercharacter vector of the names of birds found in birds$Short_Name but not found in the names of R
missingFromDF character vector of names in R that are not found in birds$Short_Name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.