plyr
Can `ddply` (or similar) do a sliding window?
Something like sliding = function(df, n, f) ldply(1:(nrow(df) - n + 1), function(k) f(df[k:(k + n - 1), ])[详细]
2023-03-31 22:41 分类:问答How to ddply() without sorting?
I use the following code to summarize my data, grouped by Compound, Replicate and Mass. summaryDataFrame <- ddply(reviewDataFrame, .(Compound, Replicate, Mass),[详细]
2023-03-31 08:46 分类:问答Slower ddply when .parallel=TRUE on Mac OS X Version 10.6.7
I am trying to get ddply to run in parallel on my mac.The code I\'ve used is as follows: library(doMC)[详细]
2023-03-30 17:58 分类:问答R loops: Adding a column to a table if does not already exist
I am trying to compile data from several files using for loops in R开发者_C百科. I would like to get all the data into one table. Following calculation is just an example.[详细]
2023-03-29 12:42 分类:问答vectorising the application of mle2 models
I have written a model that I am fitting to data using ML via the mle2 package. However, I have a large data frame of samples and I would like to fit the model to each replicate, and then retrieve all[详细]
2023-03-28 11:03 分类:问答Using Dates with the data.table package
I recently discovered the data.table package and was now wondering whether or not I should replace some of my plyr-code. To summarize, I really like plyr and I basically achieved everything I wanted.[详细]
2023-03-26 08:17 分类:问答r combining results from tapply using do.call(rbind) or ddply
I have Date/Time information where I want to get the average, min, max, range of the dates across \"seasons\" grouped by years and the only way I have been slightly successful of doing this is with ta[详细]
2023-03-24 21:39 分类:问答ddply aggregated column names
I am using ddply to aggregate my data but haven\'t found an elegant way to assign colum开发者_运维知识库n names to the output data frame.[详细]
2023-03-23 09:50 分类:问答Reshape cast compare to one level
I often have data where I want to compare the value of one level of variable with all the other levels of variable.Each time I write code to do this I wish it were easier.Here\'s an example of the pro[详细]
2023-03-22 07:45 分类:问答Preserve ordered factor when using ddply
I use ddply a lot. I use ordered factors occasionally. Calling ddply on a data frame that contains an ordered factor drops any ordering in the recombined data frame.[详细]
2023-03-19 14:58 分类:问答