Nothing
#' @title Retrieve Achievement Level Cutpoints
#'
#' @description Retrieves a summary of the achievement level cutpoints for a
#' selected study represented in an
#' \code{edsurvey.data.frame}, a \code{light.edsurvey.data.frame},
#' or an \code{edsurvey.data.frame.list}.
#'
#' @param data an \code{edsurvey.data.frame}, a \code{light.edsurvey.data.frame}, or
#' an \code{edsurvey.data.frame.list}
#'
#' @return
#' If there are achievement levels defined, prints one line per subject scale.
#' Each line names the subject and then shows the cut point for each achievement level.
#'
#' @author Michael Lee and Paul Bailey
#' @example \man\examples\showCutPoints.R
#' @export
showCutPoints <- function(data) {
if (inherits(data, c("edsurvey.data.frame.list"))) {
return(itterateESDFL(match.call(), data))
}
checkDataClass(data, c("edsurvey.data.frame", "light.edsurvey.data.frame"))
cat(paste0("Achievement Levels:\n"))
als <- getAttributes(data, "achievementLevels")
if (length(als) > 0) {
for (i in seq_along(als)) {
cat(paste0(" ", names(als)[i], ": ", paste(unname(als[[i]]), collapse = ", "), "\n"))
}
} else {
# paste a statement if there are no achievement levels in the sdf
cat(paste0(" No achievement levels.\n"))
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.