| detach {base} | R Documentation |
Detach a database, i.e., remove it from the search() patch
of available R objects. Usually, this either a data.frame
which has been attached or a package which was required
previously.
detach(name, pos = 2)
name |
The object to detach. Defaults to search()[pos].
This can be a name or a character string but not a character vector. |
pos |
Index position in search() of database to
detach. When name is numeric, pos = name
is used. |
The attached database is returned invisibly, either as
data.frame or as list.
attach, library, search,
objects.
require(eda)#package
detach(package:eda)
## could equally well use detach("package:eda")
## but NOT pkg <- "package:eda"; detach(pkg)
library(mva)
detach(2)# `pos' used for `name'