R/sptest.R

Defines functions sptest

Documented in sptest

#' Function to get the shappiro test p value
#' 
#' @param x A vector of values
#' @export

sptest <- function(x, na.rm){
  shapiro.test(x)$p.value %>% round(., 4) %>%
    ifelse(. < 0.01, "<0.01", .)
}
jpablo91/Pabloverse documentation built on April 11, 2024, 2:54 p.m.