R/getVals.R

Defines functions getVals

Documented in getVals

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