Skip to content

Commit b61d893

Browse files
author
ripley
committed
tweaks
git-svn-id: https://svn.r-project.org/R/trunk@87458 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent a45ce6c commit b61d893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/base/man/Extract.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ x$name <- value
204204
equivalent to \code{alist[[i1]]\dots[[ip]]} providing all but the
205205
final indexing results in a list.
206206

207-
Attempts to extract a non-existent element return \code{NULL}.
207+
Attempts to extract a non-existent element by name return \code{NULL}.
208208

209209
Note that in all three kinds of replacement, a value of \code{NULL}
210210
deletes the corresponding item of the list. To set entries to
211211
\code{NULL}, you need \code{x[i] <- list(NULL)}.
212212

213213
When \code{$<-} is applied to a \code{NULL} \code{x}, it first coerces
214214
\code{x} to \code{list()}. This is what also happens with \code{[[<-}
215-
where in \R versions less than 4.y.z, a length one value resulted in a
215+
where in \R versions before 4.0.0, a length one value resulted in a
216216
length one (atomic) \emph{vector}.
217217
}
218218

0 commit comments

Comments
 (0)