addcluster: Function that adds the clustering result to a 'seqimp' object...

View source: R/manipulation_seqimp.R

addclusterR Documentation

Function that adds the clustering result to a seqimp object obtained with the seqimpute function

Description

Function that adds the clustering result to a seqimp object obtained with the seqimpute function

Usage

addcluster(impdata, clustering)

Arguments

impdata

An object of class seqimp as created by the seqimpute function

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

Value

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.


seqimpute documentation built on May 29, 2024, 4:35 a.m.