Learn R Programming

dbnR (version 0.7.1)

filter_same_cycle: Filter the instances in a data.table that have values of different ids in each row

Description

Given an id variable that labels the different instances of a time series inside a dataset, discard the rows that have values from more than 1 id.

Usage

filter_same_cycle(f_dt, size, id_var)

Arguments

f_dt

folded data.table

size

the size of the data.table

id_var

the variable that labels each individual instance of the time series

Value

the filtered dataset