R/forint.R

Defines functions forint

Documented in forint

#' Formats numbers as Hungarian Forint
#' @param x number
#' @return string
#' @export
#' @importFrom checkmate assert_number
#' @importFrom scales dollar
#' @examples
#' forint(42)
#' forint(10000000.213214)
#' forint(1:10)
forint <- function(x) {
  assert_numeric(x)
  dollar(x, prefix = "", suffix = " Ft")
}
Julianna-szabo/mr documentation built on Dec. 18, 2021, 2:32 a.m.