Thanks to visit codestin.com
Credit goes to github.com

Skip to content

❗ This is a read-only mirror of the CRAN R package repository. combinedevents — Calculate Scores and Marks for Track and Field Combined Events. Homepage: https://katie-frank.github.io/combinedevents/https://github.com/katie-frank/combinedevents Report bugs for this package: https://github.com/katie-frank/combinedevents/issues

Notifications You must be signed in to change notification settings

cran/combinedevents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • scores() calculates scores
  • marks() calculates marks

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")
#>    decathlon    mark score
#> 1       100m    10.8   906
#> 2         LJ     7.1   838
#> 3         SP      12   606
#> 4         HJ    2.05   850
#> 5       400m    49.5   838
#> 6      110mH    14.5   911
#> 7         DT      35   564
#> 8         PV     4.6   790
#> 9         JT      40   442
#> 10     1500m 4:21.00   805
#> 11     TOTAL    <NA>  7550

# marks for women's heptathlon
marks(c(900, 1014, 790, 1000, 788, 800, 1000), "female", "heptathlon")
#>   heptathlon    mark score
#> 1      100mH   14.56   901
#> 2         HJ    1.83  1016
#> 3         SP   13.94   790
#> 4       200m    23.8  1000
#> 5         LJ     5.8   789
#> 6         JT   46.87   800
#> 7       800m 2:07.63  1000
#> 8      TOTAL    <NA>  6296

References

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

About

❗ This is a read-only mirror of the CRAN R package repository. combinedevents — Calculate Scores and Marks for Track and Field Combined Events. Homepage: https://katie-frank.github.io/combinedevents/https://github.com/katie-frank/combinedevents Report bugs for this package: https://github.com/katie-frank/combinedevents/issues

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages