This function checks if the sample size of a data frame is adequate for statistical analysis.
check_sample_size(df)
A data frame to be checked
A message indicating if the sample size is adequate or too small
df <- data.frame(w = c(7, 8, 180, 7), x = c("a", "b", "c", "a"),
y = c(4, 5, -6, 4), z = c(7, 8, 18, 7))
check_sample_size(df)
#> Sample size may be too small.