mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 10:47:25 +01:00
compare: Include confidence intervals
This commit is contained in:
parent
3217c9bd29
commit
3df4ec5d89
3 changed files with 27 additions and 21 deletions
11
R/utils.R
11
R/utils.R
|
|
@ -29,6 +29,17 @@ cached <- function(name, objects, expr) {
|
|||
data
|
||||
}
|
||||
|
||||
#' Format and round a numeric value.
|
||||
#'
|
||||
#' @param number The number to use.
|
||||
#' @param digits Number of decimal places.
|
||||
#'
|
||||
#' @return A character value.
|
||||
#' @noRd
|
||||
num <- function(number, digits) {
|
||||
format(round(number, digits = digits), nsmall = digits)
|
||||
}
|
||||
|
||||
# This is needed to make data.table's symbols available within the package.
|
||||
#' @import data.table
|
||||
NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue