knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
combinedevents is an R package to calculate scores and marks for track and field combined events competitions. The functions included in this package are based on the scoring tables for combined events created by the International Association of Athletics Federation (2001).
Version 0.1.1 is on CRAN and can be installed with:
install.packages("combinedevents")
The development version of combinedevents can be installed from GitHub with:
# install.packages("devtools") devtools::install_github("Katie-Frank/combinedevents")
The two main functions in the package are
scores()
calculates scoresmarks()
calculates marksBelow are a couple of quick examples. To learn more about combinedevents, see the package documentation.
library(combinedevents) # scores for men's decathlon scores(c(10.8, 7.1, 12, 2.05, 49.5, 14.5, 35, 4.6, 40, "4:21"), "male", "decathlon") # marks for women's heptathlon marks(c(900, 1014, 790, 1000, 788, 800, 1000), "female", "heptathlon")
International Association of Athletics Federation (2001). IAAF Scoring Tables for Combined Events.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.