[R] $

AKA nospam at akroeger.com
Tue Jun 20 19:41:40 CEST 2006


 R has many samples included with the distribution just look in the library
sub folder of your distribution. In windows examine the base library
c:\Program Files\R\R-2.3.1\library\base\R-ex you might find they are
archived (rex.zip) extract them and use Tinn-R (or any other editor) to play
around with the various samples. You might want to add a load statement to
some samples as their library may not be auto loaded 'library(RODBC)' to
examine the features/capabilities. That has been a nice bit of help for me
thus far and a good idea to have included samples with an R distribution :)

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Davis, Jacob B. 
Sent: Tuesday, June 20, 2006 1:04 PM
To: Joerg van den Hoff
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] $

Thanks for humbling yourself to my level and not answering my question.

If object is user defined is:
 object$df.residual
 the same thing as
 df.residual(object)

You know I have self taught myself: Visual Basic, PL/SQL, C++, Matlab and
I'm not a programmer.  

In these programs I help beginners all the time with the dumb easy to find
questions because the first few months of working with a new language can be
overwhelming even when the answer is staring you in the face.

I have been in R less than a month and I only have time to spend maybe 20
minutes a day with it.  I have about five manuals sitting on my desk that I
thumb through while surfing the internet trying to figure things out.

Asking about the $ sign is a basic question, but until I have spent at least
400 or so hours with the program I'm not going to know how to help myself.
I go through this every time I learn a new piece of software and every time
comments like yours come up.  For the most part I'm sure most of the
questions that come up in the list-serve can be answered independently if
enough independent digging is done.  The purpose of the list-serve is to aid
and speed up the learning process.

You know in about six months or a year I'm sure I will be up to speed and
making contributions and then I will be helping to answer the $ sign
questions so that they can be up to speed also and contribute.

In the beginning it's helpful just to know where the resources are so one
can begin to get a feel for how to help their self.

Patrick Burns showed me where S Poetry was, being a newbie I had no idea
what are where that was, now I do.



-----Original Message-----
From: Joerg van den Hoff [mailto:j.van_den_hoff at fz-rossendorf.de]
Sent: Tuesday, June 20, 2006 11:21 AM
To: Davis, Jacob B. 
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] $

Davis, Jacob B. wrote:
> If object is user defined is:
> 
>  
> 
> object$df.residual
> 
>  
> 
> the same thing as
> 
>  
> 
> df.residual(object)
> 
>  
> 
> This is my first time to encounter the $ sign in R, I'm new.  I'm 
> reviewing "summary.glm" and in most cases it looks as though the $ is 
> used to extract some characteristic/property of the object, but I'm
not
> positive.
> 
>  
> 
> Thanks
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>  
> 
> Jacob Davis
> 
> Actuarial Analyst
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

`$' is for list component extraction. this is really very basic and, for

  once (I usually don't like this answer...),  looking at the very first

pages of the very first manual, would be not so bad an idea:


http://cran.r-project.org/  --> Manuals --> An Introduction to R

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html



More information about the R-help mailing list