I'm learning R using the book, The Art of R Programming. And in chapter 6, the author Matloff used a function called subtable <- function(tbl,subnames), but as I typed this function subtable, it says not find the function, and I googled, find it's in the package extracat, so I installed this package, but as I'm loading this package, library(extracat), an error message came out, saying
library(extracat)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘plyr’
Error: package or namespace load failed for ‘extracat’
I can't understand this, how should I use this function? Any suggestions? Much appreciated.
install.packages("plyr")and then run:library("extracat")- marbel