How to subset my data every 5 minutes per batch in time column?Hello,
I have a data set that has many batches of data stacked in one column. Another column is time point (1,2,3,4,...). I am trying to select and subset every 5 minute time point (and the first time point) for each batch such that time will be (1,5,10,15,20,..) for each batch.
I have tried to use the "select where" and "mod" functions but cannot get it to work.
Automation and ScriptingBasic Data Analysis and ModelingData Blending and CleanupRe: How to subset my data every 5 minutes per batch in time column?Given your description, the following should work.....
Names Default To Here( 1 );
dt = Current Data Table();
dt << select where( :time point == 1 | Mod( :time point, 5 ) == 0 );
dtSub = dt << subset( selected rows( 1 ), selected columns( 0 ) );