Find Location and Character Vector of an Object with partial name in R Language – apropos() and find() Function
appros() function in R Language will give the character vector of name that contain the partial name.
Syntax:
apropos(“x”, ignore.case, simple.word)Parameters:
x: partial-name of object
ignore.case: Case sensitive or not
simple.word: if TRUE the what is searched as a whole word
Example:
# R program to illustrate # appros function # Apply apropos function in Rapropos("max", ignore.case = FALSE, simple.word = FALSE) |
Output:
"cummax" "max" "max.col" "pmax" "promax" "varimax" "which.max"
Here in the above code, the appros() function will return all the strings which have “max” in them.
find() Function
find() function returns the location where the object with specific name can be found.
Syntax:
find(“x”, ignore.case, simple.word)Parameters:
x: partial-name of object
ignore.case: Case sensitive or not
simple.word: if TRUE the what is searched as a whole word
Example:
# R program to illustrate# find function # Apply find function in Rfind("varimax", ignore.case = FALSE, simple.word = FALSE) |
Output:
# "package:stats
Here in the above code, we get the location of where “varimax” is stored. So find() function is used to find what we have specified to it.


