[R] subset
Stefan Grosse
singularitaet at gmx.net
Mon Apr 23 16:41:25 CEST 2007
What format does your date have? This is essential here. However it must
be something like subset(yourdata, year %in% 2004) how to extract the
year from your date you must find out yourself... (depending on the
dates format...)
ever considered reading an introductory text?
find some here:
http://cran.r-project.org/other-docs.html
Stefan
elyakhlifi mustapha wrote:
> hi,
> ok I understand how to use the subset function but sometimes I need to use it to extract data by date and its format it isn't so easy (like below)
> for example like in using SQL I thougth that it was possible to write "%/2004" but it doesn't run. Can you help me please about this?
>
> subset(don, Date_O in "%/2004", select = c(Annee_O, Date_O))
>
>
>
> ___________________________________________________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
> Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
>
> [[alternative HTML version deleted]]
>
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list