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