The goal of epihelper is to provide a miscelanea of useful custom functions and related reproducible examples
And the development version from GitHub with:
if(!require("remotes")) install.packages("remotes")
remotes::install_github("avallecam/epihelper")
This is a basic example which shows you how to solve a common problem:
library(epihelper)
## basic example code
adorn_ame
: adorn a
tabyl
with totals on margins, percentages and N on values in only one
function!
print_inf
: make a quick(er) print(n=Inf)
read_lastfile
: read the last file in a folder (ideal for workflows
with daily inputs and updates)
example("adorn_ame")
example("print_inf")
read_gpx
: read GPX extension formats
st_coordinates_tidy
: a tidy alternative to sf::st_coordinates
. it
retrieve coordinates within the original sf/data.frame object.
sf_as_ppp
: integrates point geometry dataset and a boundary to
create a ppp for spatstat analysis. clink here for more
information.
tibble_as_raster
: transform a x,y,z tibble to a raster.
example("st_coordinates_tidy")
sum_range_h
: custom function to calculate amount of hours between to
reported times
get_distance_m
: generates a distance output between two set of
points within a tibble and flexible with dplyr::group_by
and
purrr::pmap
example("get_distance_m")
Check the reference page for examples.
Please note that the epihelper project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.