plyr
getting started with plyr `m*ply` but unable to reproduce examples
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.[详细]
2023-02-03 02:12 分类:问答How can I rewrite this code so that it uses plyr/ddply as intended?
Background I have a dataframe of probability distributions that I would like to calculate statistical summaries for:[详细]
2023-01-30 08:03 分类:问答How can I rename the output rows/cols of **ply functions from plyr?
I would like to state the row/col output names in a **ply function, ldply, from the plyr package. for example,[详细]
2023-01-28 18:58 分类:问答Question on Plyr error: Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'
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[详细]
2023-01-27 07:29 分类:问答ddply : push or pull?
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[详细]
2023-01-25 20:41 分类:问答how to speed up this R code
I have a data.frame (link to file) with 18 columns and 11520 rows that I transform like this: library(plyr)[详细]
2023-01-21 13:59 分类:问答idata.frame: Why error "is.data.frame(df) is not TRUE"?
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[详细]
2023-01-20 21:02 分类:问答Classify or cut dataframe by list of class range and summarize it with ddply
I have question about ddply and subset. I have dataframe df like this : df <- read.table(textConnection([详细]
2023-01-19 15:45 分类:问答How to use string variables to create variables list for ddply?
Using R\'s builtin ToothGrowth example dataset, this works: ddply(ToothGrowth, .(supp,dose), function(df) mean(df$len))[详细]
2023-01-17 15:16 分类:问答Does the 'summarise' function in plyr still exist?
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:[详细]
2023-01-15 03:40 分类:问答