Skip to content
Back to formatted view

Raw Message

Message-ID: <4E9D6BA4.8080808@gmail.com>
Date: 2011-10-18T12:05:56Z
From: Duncan Murdoch
Subject: Code behind the Function
In-Reply-To: <CAEfYxiW6VAdOfdZ-LUQQT5Y6nj0a=bxOtBA0eR=iWLU7R9w2qg@mail.gmail.com>

On 11-10-18 7:34 AM, Vikram Bahure wrote:
> Hi,
>
> I am a new user in R.
>
> I wanted to study the code for some R commands.
>
> For example, as I was studying PCA analysis there is a command in R, as
> "princomp". Normally if we type the command we get the code behind the
> function, but I am not able to get for this one.
>
> *>  princomp
> function (x, ...)
> UseMethod("princomp")
> <environment: namespace:stats*
>
> It would be helpful if someone could throw light on this.

That is the code for that function.  If you want information on the 
functions it calls, see Uwe Ligges' article "Accessing the Sources", 
linked from this page:

http://developer.r-project.org/TechDocs/

Duncan Murdoch