TITLE(apropos @@ Find Objects by Partial Name)
USAGE(apropos(pattern, where=FALSE))
ARGUMENTS(
ARG(pattern @@ a regular expression to match against)
ARG(where @@ a logical indicating whether positions in the search list
should also be returned)
)
ALIAS(apropos)
DESCRIPTION(
LANG(apropos) returns a vector of character strings giving the names of
all objects in the search list matching LANG(pattern).  If LANG(where)
is LANG(TRUE), their position in the search list is returned as their
names attribute.
)
SECTION(Authors @@ Kurt Hornik and Martin Maechler (May 1997).
)
SEEALSO(
LANG(LINK(objects)) for listing objects from one place,
LANG(LINK(search)) for the search path.
)
EXAMPLES(
apropos("lm")
apropos("ls")
apropos("lq")
BLANK
# need a DOUBLE backslash `\\' (in case you don't see it anymore)
apropos("\\[")
BLANK
# everything
length(apropos("."))
BLANK
# those starting with `pr'
apropos("^pr")
BLANK
# the 1-letter things
apropos("^.$")
# the 1-2-letter things
apropos("^..?$")
# the 2-to-4 letter things
apropos("^.{2,4}$")
BLANK
# the 8-and-more letter things
apropos("^.{8,}$")
table(nchar(apropos("^.{8,}$")))
)
