Skip to content

Create a Pivot

3 messages · namit, David L Carlson, jim holtman

#
Can you be more specific? Make up a small data set and show us what you
want. Use dput(dataset) to produce a version that is easy to paste into
your message. Pivot could mean many things. Transpose? Cross tabulate (as in
Excel)? Aggregate (again Excel)? Principal axes?

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352
#
Define what you mean by a pivot.  I know what a pivot table in Excel
is and you can easily create the equivalent one in R, but you have
supplied no data and have not indicated what you want as output in the
"cells" of the pivot table -- e.g., counts, sums percentages, etc.
You need to show some data and then what you would expect as output.
On Tue, Jul 24, 2012 at 1:52 PM, namit <saileshchowdary at gmail.com> wrote: