calculate_standings: Calculate standings

Description Usage Arguments Value

View source: R/calculate_standings.R

Description

Calculates the standings in the competition.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
calculate_standings(
  teams,
  instructors,
  family_reward = 1,
  order_reward = 3,
  class_reward = 5,
  expert_threshold = 4,
  NT_reward = 1,
  VU_reward = 2,
  EN_reward = 3,
  CR_reward = 4,
  RE_reward = 5
)

Arguments

teams

a list containing a data.frame for each team, see the README document for the format.

instructors

a vector of character strings containing the initials of the teachers.

family_reward

an integer indicating the number of points rewarded for every new family encountered

order_reward

an integer indicating the number of points rewarded for every new order encountered

class_reward

an integer indicating the number of points rewarded for every new class encountered

expert_threshold

The number of species within a family that has to be encountered for each species to start counting double. set this too a very high number if the feature is not desired.

NT_reward

an integer indicating the number of points rewarded when encountering a species listed as Near Threatened on the regional IUCN list.

VU_reward

an integer indicating the number of points rewarded when encountering a species listed as Vulnerable on the regional IUCN list.

EN_reward

an integer indicating the number of points rewarded when encountering a species listed as Endangered on the regional IUCN list.

CR_reward

an integer indicating the number of points rewarded when encountering a species listed as Critically endangered on the regional IUCN list.

RE_reward

an integer indicating the number of points rewarded when encountering a species listed as Regionally Extinct on the regional IUCN list.

Value

a tibble ready to use in plot_standings().


andreasbennetsenboe/touRdemols documentation built on Dec. 19, 2021, 2:36 a.m.