Convert normal abundance data to presence/absence
Source:R/pres_abs_conversion.R
pres_abs_conversion.Rd
pres_abs_conversion
is an internal function that is used within the
nmds_ecosite function. Using presence/absence data will
allow you to use data from plots that do not have abundance data. In certain
datasets, this is an advantageous feature. When I have used NMDS on moderate
sized datasets (i.e., 100+ plots), I have found it to yield similar results
as abundance data. This could be different for small datasets.
Examples
my_pres_abs <- pres_abs_conversion(veg_df = ecositer::vegetation_dataframe)
#> Error in veg_df %>% dplyr::group_by(vegplotid, plantsciname) %>% dplyr::summarise(sum(akstratumcoverclasspct)) %>% dplyr::rename(pctcover = `sum(akstratumcoverclasspct)`): could not find function "%>%"
head(my_pres_abs)
#> Error: object 'my_pres_abs' not found