View source: R/manipulation_seqimp.R
addcluster | R Documentation |
seqimp
object
obtained with the seqimpute
functionFunction that adds the clustering result to a seqimp
object
obtained with the seqimpute
function
addcluster(impdata, clustering)
impdata |
An object of class |
clustering |
clustering made on the multiple imputed dataset. Can either be a dataframe or a matrix, where each row correspond to an observation and each column to a multiple imputed dataset |
Returns a seqimp
object containing the cluster to which each
sequence in each imputed dataset belongs. Specifically, a column named
cluster is added to the imputed datasets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.