Dear R-users, Is there a easy way to access to a complete listing of available functions from a R session? The help.start() and ? functions are great, but I feel like they require the user to know the answer in advance (especially with respect to function names)... I could not find a easy way to simply browse through a list of functions and randomly pick one function to see what is does. Is there such a possibility in R? Thanks PS: I apologize if this question appears trivial. [[alternative HTML version deleted]]
Try : objects("package:base") Also, as it happens, a new package called unknownR is in development on R-Forge. It's description says : Do you know how many functions there are in base R? How many of them do you know you don't know? Run unk() to discover your unknown unknowns. It's fast and it's fun ! It's not ready to try yet (and may not live up to it's promises) but hopefully should be ready soon. Matthew "S?bastien Bihorel" <pomchip at free.fr> wrote in message news:AANLkTinfpMThB2OsGjckEO3jWsqHW+-ZDyd0xtdMK8ix at mail.gmail.com...> Dear R-users, > > Is there a easy way to access to a complete listing of available functions > from a R session? The help.start() and ? functions are great, but I feel > like they require the user to know the answer in advance (especially with > respect to function names)... I could not find a easy way to simply browse > through a list of functions and randomly pick one function to see what is > does. > > Is there such a possibility in R? > > Thanks > > PS: I apologize if this question appears trivial. > > [[alternative HTML version deleted]] >
Try this: sapply(search(), ls, all.names = TRUE) This show all the functions in the search() path On Tue, Jan 4, 2011 at 10:13 AM, Sébastien Bihorel <pomchip@free.fr> wrote:> Dear R-users, > > Is there a easy way to access to a complete listing of available functions > from a R session? The help.start() and ? functions are great, but I feel > like they require the user to know the answer in advance (especially with > respect to function names)... I could not find a easy way to simply browse > through a list of functions and randomly pick one function to see what is > does. > > Is there such a possibility in R? > > Thanks > > PS: I apologize if this question appears trivial. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
On 04/01/2011 7:13 AM, S?bastien Bihorel wrote:> Dear R-users, > > Is there a easy way to access to a complete listing of available functions > from a R session? The help.start() and ? functions are great, but I feel > like they require the user to know the answer in advance (especially with > respect to function names)... I could not find a easy way to simply browse > through a list of functions and randomly pick one function to see what is > does. > > Is there such a possibility in R? > > Thanks > > PS: I apologize if this question appears trivial.This requires a two level search, but is probably more useful than just a list of function names: Run help.start() to get into the main help page. Click on "Packages". Now you'll see a list of all installed packages and their titles. Choose an interesting package, and click on its name. Now you'll see a list of most help aliases (generally all functions, plus some other things) and the title of the associated help page. You don't see all help aliases: S4 method documentation tends to have a lot of aliases, and some of those are suppressed. But you should see all help pages at least once. Duncan Murdoch
You can also search for a "cheatsheet". There are several out there searching on "cheatsheet r" This one at Oregon State is presented as a web page" http://www.science.oregonstate.edu/~shenr/Rhelp/00cheat.htm Others are available as pdf's. On Jan 4, 2011, at 7:13 AM, S?bastien Bihorel wrote:> Dear R-users, > > Is there a easy way to access to a complete listing of available > functions > from a R session? The help.start() and ? functions are great, but I > feel > like they require the user to know the answer in advance (especially > with > respect to function names)... I could not find a easy way to simply > browse > through a list of functions and randomly pick one function to see > what is > does. > > Is there such a possibility in R? > > Thanks > > PS: I apologize if this question appears trivial. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.David Winsemius, MD West Hartford, CT