prep_chunks | R Documentation |
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.
prep_chunks(data, changepoints = NULL, timename = "time")
data |
Class |
changepoints |
Numeric vector indicating locations of the change
points. Must be conformable to |
timename |
|
data.frame
of start
and end
times (columns)
for each chunk (rows).
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.