# One-sample t test against a target mean. Base R only; tested with R 4.6.1.
report <- function(path, x) cat(path, "=", if (is.numeric(x)) sprintf("%.17g", x) else as.character(x), "\n")

d <- read.csv("data.csv")                       # column x (thickness)
target <- 6.2
fit <- t.test(d$x, mu = target)                 # two-sided, 95 % interval

report("/estimate",  mean(d$x) - target)         # mean difference from target
report("/statistic", fit$statistic)
report("/df",        fit$parameter)
report("/p_value",   fit$p.value)
report("/ci_lower",  fit$conf.int[1] - target)   # interval for the difference
report("/ci_upper",  fit$conf.int[2] - target)
