One-sample t-test

age<-c(25, 40, 44, 22, 43, 51, 35, 24)

mean(age)

var(age)

sd(age)

t.test(age, mu=35, paired = FALSE, conf.level=.95)