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 Aug. 28, 2023, 2:30 p.m.