Sowmya S. Manian Sowmya S. Manian - 1 month ago 9
R Question

Open html help documentation pages for multiple functions simultaneously in R

I am using

plyr
package. Through
ls()
function I retrieved the below functions

library(plyr)
ls("package:plyr",pattern="ply")
# [1] "a_ply" "aaply" "adply" "alply" "d_ply" "daply"
# [7] "ddply" "dlply" "l_ply" "laply" "ldply" "liply"
# [13] "llply" "m_ply" "maply" "mdply" "mlply" "r_ply"
# [19] "raply" "rdply" "rlply" "tryapply"


How can I open help documentation for all the above functions simultaneously in
html
from console using
help()
or any other function.

I tried using
c()
inside
help()
by putting few functions. It doesn't work. I also tried
list()
and then
help()
. Not sure how to go about it.

Any help is highly appreciated.
Thanks.

Answer

You can use lapply

lapply(ls("package:plyr",pattern="ply"), help)
Comments