create_time_sequence: Creates time sequences out of jam genre data

Description Usage Arguments Value Examples

View source: R/hello.R

Description

This function transforms the jam data with the attached genres into the time sequence format STS (state sequences). In comparison to the original jam genre data that contains one observation per row the STS format contains one whole sequence per row. This function needs to applied to the jam data to proceed them further.

Usage

1
create_time_sequence(clearedData)

Arguments

clearedData

A matrix of jams with genres as returned by the function add_genres_to_jams()

Value

sequences in STS (state sequences) format which contains one sequence per row

Examples

1
2
3
4
# Example for the case that all datasets are located in S:/
jams <- load_jams("S:/", loadExample = TRUE)
jams_with_genre <- add_genres_to_jams(jams, "S:/", loadExample = TRUE)
jam_sequence <- create_time_sequence(jams_with_genre)

githerbert/HMM documentation built on May 30, 2019, 12:46 p.m.