This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/apropos.html
apropos {base}R Documentation

Find Objects by Partial Name

Description

apropos returns a vector of character strings giving the names of all objects in the search list matching pattern. If where is TRUE, their position in the search list is returned as their names attribute.

Usage

apropos(pattern, where=FALSE)

Arguments

pattern

a regular expression to match against

where

a logical indicating whether positions in the search list should also be returned

Author(s)

Kurt Hornik and Martin Maechler (May 1997).

See Also

objects for listing objects from one place, search for the search path.

Examples

apropos("lm")
apropos("ls")
apropos("lq")

# need a DOUBLE backslash `\\' (in case you don't see it anymore)
apropos("\\[")

# everything
length(apropos("."))

# those starting with `pr'
apropos("^pr")

# the 1-letter things
apropos("^.$")
# the 1-2-letter things
apropos("^..?$")
# the 2-to-4 letter things
apropos("^.{2,4}$")

# the 8-and-more letter things
apropos("^.{8,}$")
table(nchar(apropos("^.{8,}$")))

[Package base version 0.60 ]