as.ordertable function

Convert an order table with DNS entries to a nice order table

Convert an order table with DNS entries to a nice order table

Given an ordertable such as F1_table_2017 which is a wikitable object, function as.ordertable() returns a nicified version in which entries such as DNS are replaced with zeros. Finishing competitors are assigned numbers 1n1-n with no gaps; the function can be used to extract a subset of competitors.

Function ordertable2supp() offers similar functionality but returns a hyper2 object directly.

as.ordertable(w)

Arguments

  • w: A generalized ordertable, a wikitable

Details

Operates columnwise, and treats any entry not coercible to numeric as DNF.

Returns

Returns an ordertable suitable for coercion to a hyper2 object.

Author(s)

Robin K. S. Hankin

See Also

ordertable,ordertable2supp

Examples

as.ordertable(F1_table_2017) ordertable2supp(as.ordertable(F1_table_2017[1:9,]))
  • Maintainer: Robin K. S. Hankin
  • License: GPL (>= 2)
  • Last published: 2024-05-31