knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(tidylsr) library(dplyr)
A minimal example for the two sample test:
iris %>% filter(Species != "versicolor") %>% ttest_twosample(Sepal.Length ~ Species)
A minimal example for the one sample test:
iris %>% filter(Species == "virginica") %>% ttest_onesample(outcome = Sepal.Length, null_mean = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.