Description Usage Arguments Value Examples
View source: R/classify_form_info.R View source: R/optimize_calculation.R
A function that converts a form vector e.g. 'WLD' into an integer value defined by the function default values for win / lose / draw.
1 2 3 | form_to_int(oldForms, winPoints = 2, drawPoints = 1, losePoints = 0)
form_to_int(oldForms, winPoints = 2, drawPoints = 1, losePoints = 0)
|
oldForms |
A character string which contains either 'W', 'L', or 'D' of arbitrary length |
winPoints |
An integer defining the points accredited for a win. |
drawPoints |
Same as above for a draw. |
losePoints |
Same as above for a loss. |
An integer value defining the value of a teams form
1 | footballstats::form_to_int('WLDW')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.