On Tue, 12 Aug 2003, Spencer Graves wrote:
a$b = a[['b']] = attribute b of list a.
(Not quite always. First, it is `component' not `attribute' and second $
and [[ ]] do behave differently, e.g. for data frames in 1.7.x.)
A basic object in R is a list, and the $ operator provides one means
a$b = a[['b']] = attribute b of list a.
A basic object in R is a list, and the $ operator provides one means
of accessing named attributes of a list.
Beginning with R 1.7, objects can also have slots, which are
accessed as [EMAIL PROTECTED]. I have yet to understand why slots were
On Wed, 13 Aug 2003, Richard A. O'Keefe wrote:
While reading through some of the R source code, I have come
across forms such as
m$...
m$... - e
and I wondered what they meant.
?$ mentions x$name, but not $...
... is a name, a special one in the context of function calls.
All