R/no_scientific.R

Defines functions no_scientific

Documented in no_scientific

#' no_scientific function
#'
#' @param x some numeric scalar
#'
#' @return the number x as a character vector without scientific notation
#' @export
#'
#' @examples
#' change 1e6 to 1000000
#' num<-no_scientific(1e6)
#'
no_scientific<-function(x){
  num=format(x,scientific = F, trim = T)
  return (num)
}
deponent-verb/popgen.stats documentation built on Nov. 4, 2019, 10:26 a.m.