Try this:
#DF <- read.table( )
DF[!as.POSIXlt(DF$V1)[['min']] %% 15,]
On Tue, Aug 17, 2010 at 10:02 AM, skan <juanpide@gmail.com> wrote:
>
> Hello
>
> I have a file with this format
>
> 2005-01-03 09:05 0.00
> 2005-01-03 09:10 0.01
> 2005-01-03 09:15 0.02
> 2005-01-03 09:20 0.03
> 2005-01-03 09:25 0.04
> 2005-01-03 09:30 0.05
> 2005-01-03 09:35 0.06
> 2005-01-03 09:40 0.07
> 2005-01-03 09:45 0.08
> 2005-01-03 09:50 0.09
> 2005-01-03 09:55 0.10
> 2005-01-03 10:00 0.00
> 2005-01-03 10:05 0.00
> ....
> some data may be missing
>
>
> And I need to keep just the rows with time multiple of 15sec
> 2005-01-03 09:15 0.02
> 2005-01-03 09:30 0.05
> 2005-01-03 09:45 0.08
> 2005-01-03 10:00 0.00
> .......
>
>
> How can I do it?
>
> thanks
> --
> View this message in context:
> http://r.789695.n4.nabble.com/remove-rows-tp2328312p2328312.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
[[alternative HTML version deleted]]