[R] filtering signals per day

anna lippelanna24 at hotmail.com
Wed Mar 3 20:20:25 CET 2010


Hello R lovers,
I have a vector of dates and signals. I want to filter the signals per day
in a way that only the first signal of the day remains like this:
Dates               Signals       Filtered Signal
2006-11-02         0                    0
2006-11-02         1                    1
2006-11-02         0                    0 
2006-11-02         1                    0
2006-11-02         1                    0 
2006-11-02         0                    0
2006-11-03         1                    1
2006-11-03         1                    0 
2006-11-03         0                    0
2006-11-03         1                    0
2006-11-03         0                    0

The thing is that I want to do it with matrix functions and not doing a loop
but I still have no clue even after having spent time on it. Can somebody
please help me? thank you!



-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/filtering-signals-per-day-tp1577044p1577044.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list