R/flength.R

Defines functions flength

# flength round and add a 0 before in case necessary
flength = function(x, digits = 2, length = 1){
  # afegir number of digits
  sprintf(paste0("%.", length, "f"), round(x, digits))
}
douve/UEMR documentation built on July 3, 2024, 12:43 a.m.