seqwithmiss: Extract all the trajectories with at least one missing value

View source: R/manipulation_seqimp.R

seqwithmissR Documentation

Extract all the trajectories with at least one missing value

Description

Extract all the trajectories with at least one missing value

Usage

seqwithmiss(data, var = NULL)

Arguments

data

either a data frame containing sequences of a multinomial variable with missing data (coded as NA) or a state sequence object built with the TraMineR package

var

the list of columns containing the trajectories. Default is NULL, i.e. all the columns.

Value

Returns either a data frame or a state sequence object, depending the type of data that was provided to the function

Author(s)

Kevin Emery

Examples


# Game addiction dataset
data(gameadd)
# Extract the trajectories without any missing data
gameadd.withmiss <- seqwithmiss(gameadd, var = 1:4)


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