powered by
roundR takes a vector or matrix of numbers and returns rounded values with selected precision and various formatting options.
roundR
roundR( roundin, level = 2, smooth = FALSE, textout = TRUE, drop0 = FALSE, .german = FALSE, .bigmark = FALSE )
vector of type character (default) or numeric, depending on parameter textout.
A vector or matrix of numbers.
A number specifying number of relevant digits to keep.
A logical specifying if you want rounding before the dot (e.g. 12345 to 12300).
A logical if output is converted to text.
A logical if trailing zeros should be dropped.
A logical if german numbers should be reported.
A logical if big.mark is to be shown, mark itself depends on parameter .german.
roundR(1.23456, level = 3) roundR(1.23456, level = 3, .german = TRUE) roundR(1234.56, level = 2, smooth = TRUE)
Run the code above in your browser using DataLab