R/get.tau.r

#############################################
# Calculate the length of observations, tau #
#############################################
get.tau <- function(inputData){
  if (length(dim(inputData)) != 2) {
    tau        <- as.integer(length(inputData))
  }
  if (length(dim(inputData)) == 2) {
    tau        <- as.integer(dim(inputData)[2])
  }
  return(tau)
  }

Try the hsmm package in your browser

Any scripts or data that you put into this service are public.

hsmm documentation built on May 2, 2019, 12:32 p.m.