apropos("^ore")

Posted on

We have all been in the position of trying to find the name of a command in a language, particularly if you are not totally sure of the full command name.

I’ve been working with R a lot recently and in particular Oracle R Enterprise. I was always trying to remember what the full command name was. Then I found the apropos function. The apropos function allows you to search R for commands based on a part or partial name. You can use regular expression syntax to define what part of the function name you are looking for.

What I ended up using most often was the following command. This function call looks for all functions being with ‘ore‘.

> apropos(“^ore”)

Apropos

To find out more about how to use the apropos command check out the R help.

> help(apropos)

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s