calculate_df <- function(n, design = c("within", "between")) {
# Validating arguments ---------------------------
# n must be something
if (design == "between") {
2 * n - 2
} else {
n - 1
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.