R/gals2pintsFunction.R

Defines functions gals2pints

Documented in gals2pints

#' Gallons to pints conversion
#'
#' Takes a numeric input as the number of gallons and converts it to pints
#' @param x A numeric value representing the number of gallons needed
#' @return The number of pints that are equal to the number of gallons that were inputted into the function
#' @export
gals2pints <- function(x){
  gal <- 1
  pints <- 8 * gal
  z <- x * pints
  y <- "pints"
  return(c(z,y))
}
ItzelZapata-Oropesa/FinalProject_CreatingAPackage documentation built on May 10, 2022, 7:33 p.m.