Trying to learn plyr, I have gotten stuck trying to reproduce code from the introductory guide. The guide says that the code is in a file plyr.r, but not where I can find this file.
Background I have a dataframe of probability distributions that I would like to calculate statistical summaries for:
I would like to state the row/col output names in a **ply function, ldply, from the plyr package. for example,
I am upgrading a project I had working previously. This code worked a few months ago, in the meantime I have upgraded R and plyr. I think I was on R1.10 and now I am on R1.35, I am not sure what versi
Does ddply push or pull when grouping data? I.e, does it involve many passes over the dat开发者_运维知识库a frame, or just one?If you take a look at the code, you see the general structure of the fun
I have a data.frame (link to file) with 18 columns and 11520 rows that I transform like this: library(plyr)
I\'m working with a large data frame called exp (file here) in R.In the interests of performance, it was suggested that I check out the idata.frame() function from plyr. But I think I\'m using it wron
I have question about ddply and subset. I have dataframe df like this : df <- read.table(textConnection(
Using R\'s builtin ToothGrowth example dataset, this works: ddply(ToothGrowth, .(supp,dose), function(df) mean(df$len))
When using plyr, I often want to 1) perform an operation on only a subset of the variables and 2) name the output of the operation. For example: