Top "Reshape2" questions

The reshape2 package in R contains functions that allow data to be transformed into more convenient forms.

Grouped bar plot in ggplot

I have a survey file in which row are observation and column question. Here are some fake data they look …

r ggplot2 bar-chart reshape reshape2
R: "Unary operator error" from multiline ggplot2 command

I'm using ggplot2 to do a boxplot comparison of two different species, as indicated by the third column shown below: &…

r ggplot2 multiline reshape2
Compute mean and standard deviation by group for multiple variables in a data.frame

Edit -- This question was originally titled << Long to wide data reshaping in R >> I'm just …

r aggregate reshape reshape2
No non-missing arguments warning when using min or max in reshape2

I get the following warning when I use min or max in the dcast function from the reshape2 package. What …

r aggregate-functions reshape2
reshape2 melt warning message

I'm using melt and encounter the following warning message: attributes are not identical across measure variables; they will be dropped …

r reshape2 melt
Reshaping wide to long with multiple values columns

I need to reshape my wide table into long format but keeping multiple fields for each record, for example: dw &…

r reshape reshape2 melt
R reshape2 'Aggregation function missing: defaulting to length'

I have seen this reshape2 several times on SO but haven't seen a solution to my particular problem; I have …

r reshape2
R reshape a vector into multiple columns

Let's say I have a vector in R as follows: d<-seq(1,100) I want to reshape this vector into …

r vector matrix reshape reshape2
can the value.var in dcast be a list or have multiple value variables?

In the help files for dcast.data.table, there is a note stating that a new feature has been implemented: "…

r data.table reshape reshape2
how to pivot/unpivot (cast/melt) data frame?

How can I 'unpivot' a table? What is the proper technical term for this? UPDATE: The term is called melt …

r pivot-table reshape reshape2