get_rd_num: Get the Round Number

Description Usage Arguments Value Examples

View source: R/get_rd_num.R

Description

This function asks a user to input the round number for a completed debate round. The function checks to see if the input is less than the maximum number of rounds in the tournament, greater than 0, and that all debates in the previous round has been completed. If any of these conditions are not satisfied, it will ask the user to input a different round number. To exit the loop, the user can type quit and the function will return NULL.

Usage

1
get_rd_num(maxRounds = NULL)

Arguments

maxRounds:

The maximum number of rounds in the tournament (numeric)

Value

The user inputed round number

Examples

1
2
get_rd_num()
get_rd_num(maxRounds=5)

alexkaechele/VirtualTab documentation built on Feb. 13, 2020, 9:36 p.m.