Top "Reshape" questions

In R, Matlab, NumPy and APL, reshape functions allow data to be transformed into more convenient forms.

Mysql, reshape data from long / tall to wide

I have data in a mysql table in long / tall format (described below) and want to convert it to wide …

sql mysql statistics reshape
Getting a stacked area plot in R

This question is a continuation of the previous question I asked. Now I have a case where there is also …

r plot ggplot2 reshape stacked-area-chart
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
melt to two variable columns

I have the following variables in a data frame: [1] "Type" "I.alt" "idx06" "idx07" "idx08" "farve1" "farve2" If I do: …

r ggplot2 reshape
Need to convert columns to rows in R

I have data that looks like a b c 1 5 4 3 6 1 2 5 3 I want to convert it to convert all the columns to …

r reshape transpose
Reshaping data frame in R

I'm running into difficulties reshaping a large dataframe. And I've been relatively fortunate in avoiding reshaping problems in the past, …

r dataframe reshape
R package reshape function melt error: id variables not found in data when working with a lot of factors

I am working with a rarefaction output from mothur, which basically gives me a dataset containing the number of sequences …

r reshape melt mothur
Reshaping an array to data.frame

I have the following data structure (an "atomic vector?") output from daply in plyr, in which I had the function …

r transform dataframe reshape
Opposite of melt in python pandas

I cannot figure out how to do "reverse melt" using Pandas in python. This is my starting data import pandas …

python pandas pivot reshape melt
Can't reshape numpy array

I have a function that is supposed to take a 1D array of integers and shapes it into a 2D …

python numpy multidimensional-array reshape