knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

combinedevents

CRAN status R build status codecov Total Downloads

Overview

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).

Installation

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")

Usage

The two main functions in the package are

Below 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")

References

International Association of Athletics Federation (2001). IAAF Scoring Tables for Combined Events.



Katie-Frank/combinedevents documentation built on Feb. 13, 2021, 11:24 p.m.