laply is part of what package in R?

后端 未结 4 1503
感动是毒
感动是毒 2021-01-17 08:24

laply for R is part of what package?

I get:

 \"Error: could not find function \"laply\"\".

Thanks.

4条回答
  •  温柔的废话
    2021-01-17 08:53

    A useful way to find functions that are somewhere in some contributed package on CRAN is

    install.packages("sos")
    library("sos")
    findFn("laply")
    

    (of course, the first command is only necessary once per R installation ...)

    In this case, you get

    > findFn("laply")
    found 5 matches
    

    and a web page opens in your web browser that shows you (as stated above) that there is an laply function in the plyr package.

    Of course, findFn() is much more broadly useful -- for example, you could try findFn("compositional data analysis") (if that was what you were interested in).

提交回复
热议问题