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

2010-06-15 Thread Sergey Goriatchev
> showMethods("apply") Function: apply (package base) X="ANY" X="missing" (inherited from: X="ANY") X="timeSeries" On Tue, Jun 15, 2010 at 15:10, Gavin Simpson wrote: > On Tue, 2010-06-15 at 14:56 +0200, Sergey Goriatchev wrote: >> Maybe I have to much stuff loaded in the workspace, Gavin, yo

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

2010-06-15 Thread Gavin Simpson
On Tue, 2010-06-15 at 14:56 +0200, Sergey Goriatchev wrote: > Maybe I have to much stuff loaded in the workspace, Gavin, you are right: OK, so now do showMethods("apply") And R should list out the available methods. See which package (re)defines apply. But it is likely going to be simpler to st

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

2010-06-15 Thread Sergey Goriatchev
Maybe I have to much stuff loaded in the workspace, Gavin, you are right: > sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252 [4] LC_NUMERIC=CLC_TI

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

2010-06-15 Thread Gavin Simpson
On Tue, 2010-06-15 at 14:38 +0200, Sergey Goriatchev wrote: > Erik, I see the following when I type "apply" at the prompt: > > > apply > standardGeneric for "apply" defined from package "base" Looks like you have something loaded in your workspace (or have created something) that has altered the

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

2010-06-15 Thread Erik Iverson
Sergey Goriatchev wrote: 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") Methods may be defined for arguments: X, MARGIN, FUN Use showMethods("apply") for curr

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

2010-06-15 Thread Sergey Goriatchev
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") Methods may be defined for arguments: X, MARGIN, FUN Use showMethods("apply") for currently available ones. Also

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

2010-06-15 Thread Gavin Simpson
On Tue, 2010-06-15 at 14:20 +0200, 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. In what sense does it not work? If I do this, I get: > apply function (X, MARGIN, FU

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

2010-06-15 Thread Erik Iverson
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 p

[R] How to see how a function is written

2010-06-15 Thread Sergey Goriatchev
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. Thank you for help! Sergey __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help