cutoff_incidence: Cuttoff incidence datatable from interaction data frame In a...

View source: R/cutoff_incidence.R

cutoff_incidenceR Documentation

Cuttoff incidence datatable from interaction data frame In a incidence data.frame, cutoff keeps the maximal incidence information with the minimal number of species possible

Description

Cuttoff incidence datatable from interaction data frame In a incidence data.frame, cutoff keeps the maximal incidence information with the minimal number of species possible

Usage

cutoff_incidence(data, incidence = incidence, accuracy = 4)

Arguments

data

A data.frame object with acummulated interaction information

incidence

The incidence of interaction in the data data.frame

accuracy

The accuracy of the cutoff. Since the cutoff is get from second derivate, the accuracy set the round number of digits to cut the second derivate. Default 5

Value

A data.frame with the summarized incidence from an interaction data.frame. Includes the acummulated incidence for each group provided

Examples

library(ecointeraction)
acummulate_incidence(mammalvirus, virus, incidence) %>% cutoff_incidence

alrobles/PNASSubmit-Wildlife-susceptibility-to-infectious-diseases-at-global-scales documentation built on Aug. 2, 2022, 5:15 p.m.