Learn R Programming

seqimpute (version 2.2.1)

seqcomplete: Extract all the trajectories without missing value.

Description

Extract all the trajectories without missing value.

Usage

seqcomplete(data, var = NULL)

Value

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

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.

Author

Kevin Emery

Examples

Run this code

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

Run the code above in your browser using DataLab