I have a data frame with multiple time series identified by uniquer id\'s. I would like to remove any time series that have only 0 values.
The data frame looks as fo
Try this. No packages are used.
DF[ ave(DF$value != 0, DF$id, FUN = any), ]