The R Project SVN R

Rev

Rev 61150 | Rev 71862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61150 Rev 61433
Line 24... Line 24...
24
  \item{value}{an appropriate named list of attributes, or \code{NULL}.}
24
  \item{value}{an appropriate named list of attributes, or \code{NULL}.}
25
}
25
}
26
\details{
26
\details{
27
  Unlike \code{\link{attr}} it is possible to set attributes on a
27
  Unlike \code{\link{attr}} it is possible to set attributes on a
28
  \code{NULL} object: it will first be coerced to an empty list.
28
  \code{NULL} object: it will first be coerced to an empty list.
29
  
29
 
30
  Note that some attributes (namely \code{\link{class}},
30
  Note that some attributes (namely \code{\link{class}},
31
  \code{\link{comment}}, \code{\link{dim}}, \code{\link{dimnames}},
31
  \code{\link{comment}}, \code{\link{dim}}, \code{\link{dimnames}},
32
  \code{\link{names}}, \code{\link{row.names}} and
32
  \code{\link{names}}, \code{\link{row.names}} and
33
  \code{\link{tsp}}) are treated specially and have restrictions on
33
  \code{\link{tsp}}) are treated specially and have restrictions on
34
  the values which can be set.  (Note that this is not true of
34
  the values which can be set.  (Note that this is not true of
Line 53... Line 53...
53
  \code{\link{row.names}} are assigned correctly for data frames.
53
  \code{\link{row.names}} are assigned correctly for data frames.
54
 
54
 
55
  The names of a pairlist are not stored as attributes, but are reported
55
  The names of a pairlist are not stored as attributes, but are reported
56
  as if they were (and can be set by the replacement form of
56
  as if they were (and can be set by the replacement form of
57
  \code{attributes}).
57
  \code{attributes}).
58
  
58
 
59
  Both assignment and replacement forms of \code{attributes} are
59
  Both assignment and replacement forms of \code{attributes} are
60
  \link{primitive} functions.
60
  \link{primitive} functions.
61
}
61
}
62
\references{
62
\references{
63
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
63
  Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)