find(what, mode = "any", numeric = FALSE, simple.words = TRUE)
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. |
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)