How do I open R help about a symbol, special character, or punctuation mark like ( parenthesis or [ bracket?
A question I’ve googled before without success. Hopefully this answer will show up for someone who needs it. I’ll also go over the better-known uses of
? just in case.
- To get help in
Rabout a function like
?subset. That’s like
man subsetfrom the command line.
- If you only know roughly what you’re looking for use double question marks: so
??nonlinearwill lead to the package
nlme. That’s like
aproposon the command line.
- To get a package overview, type
?xts::xts. There is no
?xtshelp. Packages that don’t have
?twitteR::twitteRyou will need to use
- Finally, the question of the title. To get R help on punctuation such as
+, and yes, even on
?itself, use single quotes to ‘escape’ the meaningful symbol. Examples follow:
All of the quotation marks
" use the same help file so
?'`' will give you the help file for