laply is part of what package in R?

后端 未结 4 1499
感动是毒
感动是毒 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 09:04

    laply is a function in Hadley's "plyr" package. The convention is that the first letter refers to the input class and the second letter refers to the output class so laply takes a list and returns an array.

    install.packages("plyr")
    require(plyr)
    ?laply
    

    Edit: Now that the question has changed the answer is now the base package. (But if the error message was as posted it did imply a misspelling.)

提交回复
热议问题