[Rd] Do NOT misuse R-devel! {was "Median"}

2007-05-08 Thread Martin Maechler
Please, Jose, do NOT misuse R-devel for such questions! There's R-help (and many good books on R and maybe your local R expert) for asking such questions. Definitely *not* the R-devel mailing list. --> http://www.R-project.org/mail.html , the posting guide, etc. Martin Maechler, ETH Zurich {a

Re: [Rd] grep with fixed=TRUE and ignore.case=TRUE

2007-05-08 Thread Prof Brian Ripley
On Mon, 7 May 2007, Petr Savicky wrote: > Dear R developers, > > I suggest to modify the behaviour of "grep" function with fixed=TRUE option. > > Currently, fixed=TRUE implies ignore.case=FALSE (overrides ignore.case=TRUE, > if set by the user). As it clearly says it does. > I suggest to keep ig

Re: [Rd] Median

2007-05-08 Thread R. Villegas
2007/5/8, Jose Sierra <[EMAIL PROTECTED]>: > Hello. > > I need calculate the median of several column of a data.frame, in a new > column of this data frame, but the median operator only calculate from a > vector. > > I have made a functionc that calculate the median but it is very slow. > Are there

Re: [Rd] Median

2007-05-08 Thread José Fernández Menéndez
i don't understand very well but apply(your_data_frame, 1,median) calculates the median of every row of your data frame apply(your_data_frame, 2, median) calculates the median of every column 2007/5/8, Jose Sierra <[EMAIL PROTECTED]>: > Hello. > > I need calculate the median of several column of

[Rd] Median

2007-05-08 Thread Jose Sierra
Hello. I need calculate the median of several column of a data.frame, in a new column of this data frame, but the median operator only calculate from a vector. I have made a functionc that calculate the median but it is very slow. Are there any method in any package to calculate this? Best re

Re: [Rd] Problem calling $ inside a $ method

2007-05-08 Thread Seth Falcon
Prof Brian Ripley <[EMAIL PROTECTED]> writes: > In x$name, 'name' is supposed to be a symbol, unevaluated, or a > literal character string (but not a character vector). > >> f <- list(bob=1, alice=2) >> `$`(f, "bob") > [1] 1 >> nm <- "bob" >> `$`(f, nm) > NULL Thanks, this is the piece I was miss