plyr
continuous subgroups with ddply
I would like to summarize my experimental data every time a condition changes. For example: > df=data.frame(tos=1:9, temp=rep(c(25,50,25), each=3), response=c(3.2,3.3,3.3, 6.5, 6.5, 6.5, 3.5,3.6,[详细]
2023-03-01 00:14 分类:问答How to merge two data frames on common columns in R with sum of others?
R Version 2.11.1 32-bit on Windows 7 I got two data sets: data_A and data_B: data_A USER_A USER_B ACTION[详细]
2023-02-28 14:45 分类:问答Summary statistics using ddply
I like to write a function using ddply that outputs the summary statistics based on the name of two columns of data.frame mat.[详细]
2023-02-26 14:39 分类:问答plyr does not return new variable after transform
I\'m trying to learn how to write function in R/plyr. I am aware that there are easier ways to do what I show below, but that\'s not thepoint.[详细]
2023-02-25 20:07 分类:问答R: remove columns based on two column's similarity check
Input row.nocolumn开发者_高级运维2column3column4 1bbeeup 2bbeedown 3bbeeup 4bbyydown 5bbzzup I have a rule to remove row 1 and 2 and 3, as while column2 and column3 for row 1, 2 and 3 are the same,[详细]
2023-02-25 03:42 分类:问答ddply returning too many results
For some reason I\'m getting more results than I expected since the upgrade to R-2.13.0 - and the upgrade to plyr_1.5.1.tar.gz... I tried this on an old version of plyr (version unsure unfortunately a[详细]
2023-02-24 21:49 分类:问答Making a better summary statistics table with plyr in R
Every time I get a new data set the first thing I do is check out the summary statistics. The summary function does a pretty good job, but I\'m frequently interested in standard deviations, quantiles[详细]
2023-02-23 08:11 分类:问答How do I make doSMP play nicely with plyr?
This code works: library(plyr) x <- data.frame(V= c(\"X\", \"Y\", \"X\", \"Y\", \"Z\" ), Z = 1:5) ddply(x, .(V), function(df) sum(df$Z),.parallel=FALSE)[详细]
2023-02-22 02:34 分类:问答Make regressions and predictions for groups in R
I have the following data.frame d from an experiment: - Variable y (response, continuous) - Factor f (500 levels)[详细]
2023-02-22 00:14 分类:问答How does ddply handle factors as "split" variables?
I have a data.frame with 20 columns. The first two are factors, and the rest are numeric. I\'d like to use the first two columns as split variables and then apply the mean() to the remaining columns.[详细]
2023-02-19 19:21 分类:问答