suppfun | R Documentation |
Function suppfun()
is an S3 generic that returns a support
function, dispatching on the class of its primary argument.
## S3 method for class 'ordertable'
suppfun(x, ...)
## S3 method for class 'ranktable'
suppfun(x, times, ...)
## S3 method for class 'character'
suppfun(x, nonfinishers, ...)
suppfun(x, ...)
x |
Dataset to be converted to a support function |
times |
Vector corresponding to rows of |
nonfinishers |
Character vector of competitors who did not
finish, passed to |
... |
Further arguments |
Function suppfun()
is intended as a consistent S3
generic
approach to converting datasets to support functions. I am gradually
going to switch out use of ordertable2supp()
in favour of
suppfun()
in the docs.
If given a data frame, suppfun()
will not guess whether it is to
be interpreted as an ordertable or a ranktable, and return an error.
Generally, return a support function
Robin K. S. Hankin
suppfun(pentathlon_table)
suppfun(rrank(10, p = (7:1)/28))
suppfun(letters)
suppfun(c(c = 2, b = 1, a = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.