R/test.R

Defines functions zz lms

lms <- function(varz){
  llz <- paste0(signif(mean({{varz}}),3)," ± ", signif(sd({{varz}}),3))
  return(llz)
}

zz <- function(dfx = iris, varx = Sepal.Length, trix = Species){
  aa <- dfx %>% 
    summarise (lms({{varx}}))
  return(aa[[1]])
}
philippemichel/thesisph documentation built on Dec. 22, 2020, 11:08 a.m.