find
Find Packages that Contain an Object

Description

Returns a vector of package names or positions that contain an object with the specified name.

Usage

find(what, mode = "any", numeric = FALSE, simple.words = TRUE)

Arguments

what the name of an object, or, if simple.words = TRUE, a regular expression.

what can be either a name or a character string; however, a character string is recommended for compatibility.

mode a character string. If it is not the default ("any"), only objects whose mode is mode are considered.
numeric a logical value. If numeric = TRUE, it returns the position in search() list. Otherwise, it returns the name of the package.
simple.words a logical value. If TRUE (the default), the what object names must match what exactly. If FALSE, what is treated as a regular expression.
Value
Differences between Spotfire Enterprise Runtime for R and Open-source R
In open-source R, what must be a character vector.
See Also
apropos, conflicts, exists, mode, search, get, assign.
Examples
find("sin") 
# [1] "package:base"

find("sin", num=TRUE) # package:base # 9

find("some strange name") # character(0)

find("sta", mode = "list", num = TRUE, simple.words = FALSE)

find("stack", mode = "list", num = TRUE, simple.words = TRUE)

find("stack", num = TRUE, simple.words = TRUE)

find("stack", mode = "any", num = TRUE, simple.words = FALSE)

find(".data.frame$", simple.words = FALSE)

Package utils version 6.1.4-13
Package Index