Re: [R] How to see how a function is written

From: Sergey Goriatchev <sergeyg_at_gmail.com>
Date: Tue, 15 Jun 2010 14:38:08 +0200

Erik, I see the following when I type "apply" at the prompt:

> apply

standardGeneric for "apply" defined from package "base"

function (X, MARGIN, FUN, ...)
standardGeneric("apply")
<environment: 0x03cad7d0>
Methods may be defined for arguments: X, MARGIN, FUN Use showMethods("apply") for currently available ones.

Also, whether I type "mean" at the prompt, or I type "edit(mean)", I do not see the underlying code for function "mean". How would I be able to see it?

---
My machine:
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          10.1
year           2009
month          12
day            14
svn rev        50720
language       R
version.string R version 2.10.1 (2009-12-14)







On Tue, Jun 15, 2010 at 14:26, Erik Iverson <eriki_at_ccbr.umn.edu> wrote:

> Sergey Goriatchev wrote:
>>
>> Hello,
>>
>> If I want to see how, say, apply function is written, how would I be
>> able to do that?
>> Just typing "apply" at the prompt does not work.
>>
>
> Well, it is supposed to work, and it works for me.  So you need to tell us
> what "does not work" means, and all the info the posting guide requests, OS,
> versions, etc.
>
-- Famous Oxymorons: Jobless Recovery Jumbo Shrimp War Game Wedding Party Genuine Replica Toxic Assets Italian Government Feminine Logic Amicable Divorce Military Intelligence Money Multiplier Fiscal Conservative Abundant Poverty Educated Investor Government Worker Green Shoots Hope and Change Change you can believe in Becky Quick ______________________________________________ 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 Tue 15 Jun 2010 - 12:41:24 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 Tue 15 Jun 2010 - 13:00:31 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