R/other-toss-methods.R

Defines functions heads.toss heads tails.toss tails

Documented in heads tails

#' @title Tails method
#' @description Extracts label of heads
#' @param x an R object
#' @export
tails <- function(x) UseMethod("tails")

#' @export
tails.toss <- function(x) {
  x$tails
}


#' @title Heads method
#' @description Extracts label of heads
#' @param x an R object
#' @export
heads <- function(x) UseMethod("heads")

#' @export
heads.toss <- function(x) {
  x$heads
}
gastonstat/cointoss documentation built on May 5, 2023, 6:46 p.m.