Re: [R] fun.aggregate=mean in reshape

From: [Ricardo Rodriguez] Your XEN ICT Team <webmaster_at_xen.net>
Date: Wed, 13 Feb 2008 01:30:23 +0100

Charilaos Skiadas wrote:
>
> It tells you that a call to get was attempted looking for a variable
> of mode "function", and such a variable was not found. The problem is
> of course that the call tells you the variable is named "fun", while
> you expected it to be named "mean". But it alerts to the fact that the
> program was expecting a function in a place where it was given
> something else, and there is only one place where you provide it a
> function.
> Also, the fact that the call works fine without the fun.aggregate, or
> with a different fun.aggregate, prompts to the problem being the word
> "mean".
> Then typing "mean" followed by return would show you, instead of the
> function body for the function mean, something quite different.
> I have to admit that a cursory look at the code for cast does not
> immediately tell me where "fun" shows up, however, so I am slightly
> mystified by the error.

Thanks, Haris,

Of course your reasoning is clear and an in better knowledge about R will help me to better interpret its error messages in the future. But for an entry-level R user like me a conflict warning will be quite helpful.

All the best,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team

______________________________________________
R-help_at_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.
Received on Wed 13 Feb 2008 - 00:37:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Feb 2008 - 19:30:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive