recode <- function(X, items = NULL, values = defaultValues){
defaultValues = min(X, na.rm = TRUE) : max(X, na.rm = TRUE)
X[, items][!is.na(X[, items])] <- max(values) - X[, items][!is.na(X[, items])] + min(values)
return(X)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.