View source: R/prep_incidence_data.R
prep_incidence_data | R Documentation |
prep_incidence_data Function to prepare incidence data with distance data to model. Takes the species in the incidence data and join with a sample form the distance data. This allow to get a dataset ready to model with ML framework
prep_incidence_data(incidence, distance, by = "species")
incidence |
A |
distance |
A |
by |
A character vector of variables to join by. The distance table and the incidence table must have an species column |
A data.frame
with data prepare to model. Includes a sample of median distance
labeled as unknown class and incidence species labeled as susceptible class
library(ecointeraction) birdsplasmodium %>% acummulate_incidence(group = species) %>% cutoff_incidence() %>% prep_incidence_data(distance = birdsdistance)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.