Re: [R] Odp: Idioms for empty dataframes

2007-10-01 Thread Ranjan Bagchi
Thanks... that's very helpful. Sorry about the typo too > t1 <- t[t$bob < 50, ,drop=F] > t1 [1] bob <0 rows> (or 0-length row.names) > order(t$bob) [1] 1 > On Mon, 1 Oct 2007, Petr PIKAL wrote: > Hi > > [EMAIL PROTECTED] napsal dne 01.10.2007 18:01:13: > >> I'm fairly new to R, coming from a pr

[R] Odp: Idioms for empty dataframes

2007-10-01 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 01.10.2007 18:01:13: > I'm fairly new to R, coming from a programming background -- it's quite > nice to work with dataframes, though, as opposed to explicit iteration. > > One thing I've found, which is surprising is that zero-length dataframes > seem to cause