Skip to content

overlay points on plot

2 messages · femke, Spencer Graves

#
Brilliant!   Why the double brackets though?

thanks

femke


----- Original Message ----- 
From: <james.holtman at convergys.com>
To: "femke" <femke at geog.umd.edu>
Sent: Wednesday, February 18, 2004 1:58 PM
Subject: Re: [R] overlay points on plot
<r-help at stat.math.ethz.ch>
points on plot
#
Checking the documentation on lists:  help.start() -> "An 
Introduction to R" -> "Lists and data frames" -> ... "It is very 
important to distinguish Lst[[1]] from Lst[1]. [[...]] is the operator 
used to select a single element, whereas [...] is a general subscripting 
operator. Thus the former is the first object in the list Lst, and if it 
is a named list the name is not included. The latter is a sublist of the 
list Lst consisting of the first entry only. If it is a named list, the 
name is transferred to the sublist."

      hope this helps.  spencer graves
femke wrote: