R/race.R

race <- function(x) {
  # if (!is.numeric(x)) stop("X must be numeric") check invalid fields
  structure(list(x), class = "race")
}

print.race <- function(r){
  str(r)
}

predict.race <- function(){
  "test"
}
alberthkcheng/RacingR documentation built on May 10, 2019, 8:51 a.m.