Thanks.  I have no idea how I did not try that.  Sigh!

all good now!

Worik

On Wed, Sep 2, 2009 at 7:04 PM, Stefan Grosse <singularit...@gmx.net> wrote:

> On Wed, 2 Sep 2009 17:12:18 +1200 Worik R <wor...@gmail.com> wrote:
>
> WR> I have a data frame, df that I want to extract some rows from
>
> What you need is subset, see
> ?subset
>
> Example:
> df<-data.frame(TTE=(0:10)/100,SOME=rnorm(11))
> df
> # subset with all columns
> subset(df,TTE<0.02)
> # the same as:
> df[df$TTE<0.02,]
>
> When you put the whole data.frame into the braces it does not make much
> sense...
>
> hth
> Stefan
>

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to