R/foo.R

#' Pipe transforming functions
#'
#' Like dplyr, ecointeraction also uses the pipe function, \code{\%>\%} to turn
#' function composition into a series of imperative statements.
#'
#' @importFrom magrittr %>%
#' @name %>%
#' @rdname pipe
#' @export
#' @param lhs,rhs A visualisation and a function to apply to it
#' @examples
#' # Instead of cummulative_rate(acummulate_incidence(mammalvirus,
#' # mammal_species, incidence), id, incidence, cummulativesum)
#' # you can write
#' library(ecointeraction)
#' mammalvirus %>%
#'     acummulate_incidence(mammal_species, incidence) %>%
#'     cummulative_rate(id, incidence, cummulativesum)
NULL
alrobles/PNASSubmit-Wildlife-susceptibility-to-infectious-diseases-at-global-scales documentation built on Aug. 2, 2022, 5:15 p.m.