Top "Plyr" questions

plyr is an R package with tools to solve a variety of problems using the split-apply-combine strategy

quick/elegant way to construct mean/variance summary table

I can achieve this task, but I feel like there must be a "best" (slickest, most compact, clearest-code, fastest?) way …

r aggregate plyr reshape2
Object not found error with ddply inside a function

This has really challenged my ability to debug R code. I want to use ddply() to apply the same functions …

r function scope plyr
for each group summarise means for all variables in dataframe (ddply? split?)

A week ago I would have done this manually: subset dataframe by group to new dataframes. For each dataframe compute …

r dataframe plyr
group by and scale/normalize a column in r

I have a dataframe that looks like this: Store Temperature Unemployment Sum_Sales 1 1 42.31 8.106 1643691 2 1 38.51 8.106 1641957 3 1 39.93 8.106 1611968 4 1 46.63 8.106 1409728 5 1 46.50 8.106 1554807 6 1 57.79 8.106 1439542 What I can't figure out in R …

r plyr dplyr
Correlation between two dataframes by row

I have 2 data frames w/ 5 columns and 100 rows each. id price1 price2 price3 price4 price5 1 11.22 25.33 66.47 53.76 77.42 2 33.56 33.77 44.77 34.55 57.42 ... I would like to get …

r dataframe correlation plyr
Fastest way to add rows for missing time steps?

I have a column in my datasets where time periods (Time) are integers ranging from a-b. Sometimes there might be …

r dataframe plyr data.table
Convert R list to dataframe with missing/NULL elements

Given a list: alist = list( list(name="Foo",age=22), list(name="Bar"), list(name="Baz",age=NULL) ) what's the best …

r list dataframe plyr
R ggplot and facet grid: how to control x-axis breaks

I am trying to plot the change in a time series for each calendar year using ggplot and I am …

r ggplot2 plyr
understanding ddply error message

I am trying to figure out why I am getting an error message when using ddply. Example data: data<…

r plyr
R: Sorting factor by level frequency and plotting

I have a data.frame with several factors such as: df<-data.frame(Var1=as.factor(sample(c("AB", "…

r dataframe ggplot2 plyr r-factor