| prep_chunks {LDATS} | R Documentation | 
Prepare the time chunk table for a multinomial change point Time Series model
Description
Creates the table containing the start and end times for each
chunk within a time series, based on the change points (used to break up
the time series) and the range of the time series. If there are no 
change points (i.e. changepoints is NULL, there is still a
single chunk defined by the start and end of the time series.
Usage
prep_chunks(data, changepoints = NULL, timename = "time")
Arguments
| data | Class  | 
| changepoints | Numeric vector indicating locations of the change 
points. Must be conformable to  | 
| timename | 
 | 
Value
data.frame of start and end times (columns)
for each chunk (rows).
Examples
  data(rodents)
  dtt <- rodents$document_term_table
  lda <- LDA_set(dtt, 2, 1, list(quiet = TRUE))
  dct <- rodents$document_covariate_table
  dct$gamma <- lda[[1]]@gamma
  chunks <- prep_chunks(dct, changepoints = 100, timename = "newmoon")