R/getVals.R

#' 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))]))
}
jstaf/actmon documentation built on May 20, 2019, 2:11 a.m.