[R] Extract data

PIKAL Petr petr.pikal at precheza.cz
Fri Jan 11 11:50:31 CET 2013


Hi

No HTML. No highlighting.

if you want some data from object use extraction operator

?"["

Petr


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of shairul samat
> Sent: Friday, January 11, 2013 10:19 AM
> To: r-help at r-project.org
> Subject: [R] Extract data
> 
> Dear R users,
> I just join this forum a few minutes ago. My friend recommend this
> forum to me.
> 
> I have data in excel csv. My problem is I would like to extract some
> number, for example as highlighted below;
> 
> Year Ending           Maximum Value (Rain mm)
>  Gap from 19710509 090000 to 19710607 080000 of   28.96 Days
> 19710629 080000(PARTIAL)       39.3 at interval beginning 19701126
> 010326
>  Gap from 19710809 110221 to 19710816 080000 of    6.87 Days
>  Gap from 19720207 070000 to 19720303 080000 of   25.04 Days
>  Gap from 19720424 070000 to 19720504 080000 of   10.04 Days
> 19720629 080000(PARTIAL)       33.8 at interval beginning 19720517
> 144507
>  Gap from 19720913 090000 to 19720918 080000 of    4.96 Days
>  Gap from 19720929 150000 to 19721006 080000 of    6.71 Days
>  Gap from 19730129 070000 to 19730226 080000 of   28.04 Days
>  Gap from 19730531 030203 to 19730607 080000 of    7.21 Days
> 19730629 080000(PARTIAL)       32.2 at interval beginning 19720910
> 135747
>  Gap from 19731031 154200 to 19731205 080000 of   34.68 Days
>  Gap from 19740301 121500 to 19740425 080000 of   54.82 Days
> 19740629 080000(PARTIAL)       38.9 at interval beginning 19731003
> 124849
> 
> 
> So, how do i do that.
> 
> Thank you so much for any help given.
> 
> 	[[alternative HTML version deleted]]




More information about the R-help mailing list