R/setVals.R

# Replace the values of a DAM dataframe with those you specify here.

setVals <- function(DAMobject, matrix) {
  # Retrieve first index of actual data.
  idx <- which(colnames(DAMobject) == "light_status") + 1
  DAMobject[,idx:length(colnames(DAMobject))] <- matrix

  return(DAMobject)
}
jstaf/actmon documentation built on May 20, 2019, 2:11 a.m.