# Helper Functions
# checkInput for dataframe
checkInput <- function(x) {
# Make sure input is either a matrix or a dataframe
if (is.matrix(x)){
x <- as.data.frame(x)
}
if (!is.data.frame(x))
stop("input must be a data.frame or matrix object")
return(x)
}
# Within-Person Standard Deviation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.