[R] accessing function arguments as text, macro style

2004-05-25 Thread Ed L Cashin
, and some others, but I think I'm barking up the wrong tree. Any pointers would be most appreciated. -- --Ed L Cashin| PGP public key: [EMAIL PROTECTED]| http://noserose.net/e/pgp/ __ [EMAIL PROTECTED] mailing list https

Re: [R] accessing function arguments as text, macro style

2004-05-25 Thread Ed L Cashin
Gabor Grothendieck [EMAIL PROTECTED] writes: ... R f - function(x) paste(as.character(substitute(x)),x) R z - 3 R f(z) [1] z 3 Fantastic. Works like a charm. -- --Ed L Cashin| PGP public key: [EMAIL PROTECTED]| http://noserose.net/e/pgp

Re: [R] getting data frame rows out of a by object

2004-04-08 Thread Ed L Cashin
a character that is very unlikely to occur in a factor level. I definitely want to be cautious. Instead of the bell character I think I'll use the field separator character, \034, just because this is the first time I've been able to use it for it's intended purpose! ;) -- --Ed L Cashin

Re: [R] getting data frame rows out of a by object

2004-04-08 Thread Ed L Cashin
Douglas Bates [EMAIL PROTECTED] writes: Ed L Cashin [EMAIL PROTECTED] writes: ... I think I need to look at the source of split when I have more time. ?split is probably a better place to start. I've read that, so I think I need more nitty gritty. [1] If you really want to be cautious you

[R] getting data frame rows out of a by object

2004-04-07 Thread Ed L Cashin
... : 3 : 2 : 43 a b c 31 3 2 43 ... merge(b) Error in as.data.frame.default(x) : can't coerce by into a data.frame Any help is most appreciated. -- --Ed L Cashin| PGP public key

Re: [R] getting data frame rows out of a by object

2004-04-07 Thread Ed L Cashin
= ))) $14 a b c 1 1 4 31 11 1 4 41 $23 a b c 2 2 3 32 21 2 3 42 $32 a b c 3 3 2 33 31 3 2 43 $41 a b c 4 4 1 34 41 4 1 44 $410 a b c 12 41 0 0 -- --Ed L Cashin| PGP public key: [EMAIL PROTECTED

Re: [R] row selection based on median in data frame

2004-04-01 Thread Ed L Cashin
Ed L Cashin [EMAIL PROTECTED] writes: ... Is there a way to tell aggregate just do perform median on column runtime to select the whole row? Some helpful folks have emailed me requesting more info about what I'm trying to do. Here's a simple R function to produce a data frame like the one I

[R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
20 3 clean 7 10 It's more complicated in my case, because I have not just one a column, but about eight columns that have to be the same. I can do this with clumsy loops, but I wonder whether there's a better way. -- --Ed L Cashin| PGP public key

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin [EMAIL PROTECTED] writes: Hi. I am having trouble thinking of an easy way to grab rows out of a data frame. I want to select the rows with a median value when the rows are similar. I'm still catching up on my R list reading, and I notice there is a similar post to mine

Re: [R] row selection based on median in data frame

2004-03-31 Thread Ed L Cashin
Ed L Cashin [EMAIL PROTECTED] writes: Ed L Cashin [EMAIL PROTECTED] writes: Hi. I am having trouble thinking of an easy way to grab rows out of a data frame. I want to select the rows with a median value when the rows are similar. I'm still catching up on my R list reading, and I notice

Re: [R] Time for Usenet R Group?

2004-03-17 Thread Ed L Cashin
NNTP, since gmane acts as a gateway for the R mailing list. www.gmane.org It has several anti-spam features in place already. So if you want to switch, it's very easy. Just point your favorite news client to news.gmane.org and start reading gmane.comp.lang.r.general. -- --Ed L Cashin

Re: [R] Time for Usenet R Group?

2004-03-17 Thread Ed L Cashin
Marc R. Feldesman [EMAIL PROTECTED] writes: At 12:28 PM 3/17/2004, Ed L Cashin wrote: I hope this response isn't indicative of the speed with which gmane posts messages. I think this entire thread was more than 7 or 8 months ago, possibly longer. Your hopes are fulfilled. The reason