#' Retrieve values from a DAM dataframe as a matrix.
#'
#' @param DAMobject This is a dataframe corresponding to a DAM objects data
#'
#' @return a matrix of values
#'
getVals <- function(DAMobject) {
# Retrieve first index of actual data.
idx <- which(colnames(DAMobject) == "light_status") + 1
# Now retrieve everything after that index.
return(as.matrix(DAMobject[,idx:length(colnames(DAMobject))]))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.