Description Usage Arguments Value
View source: R/segmentation_helper_functions.R
After breakpoints have been extracted for each animal ID, this function assigns the associated segment number to observations for each animal ID. These segments of observations will be used in the second stage of the model framework to perform mixed-membership clustering by Latent Dirichlet Allocation.
1 | assign_tseg_internal(dat, brkpts)
|
dat |
A data frame that contains all data associated for a given animal
ID. Must include a column labeled |
brkpts |
A data frame of breakpoints for each animal ID (as generated by
|
A data frame that updates the original data object by including the segment number associated with each observation in relation to the extracted breakpoints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.