R/sirt_format_numb.R

Defines functions sirt_format_numb

## File Name: sirt_format_numb.R
## File Version: 0.141


#------ format numbers
sirt_format_numb <- function( x, digits )
{
    a1 <- round( x, digits ) + 10^{-(digits +1 ) }
    a1 <- substring( a1, 1, nchar(a1) - 1 )
    return(a1)
}

format_numb <- sirt_format_numb
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.