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
> -----Original Message-----
> From: [hidden email] [mailto:r-help-bounces@r-
> project.org] On Behalf Of namit
> Sent: Tuesday, July 24, 2012 12:53 PM
> To: [hidden email] > Subject: [R] Create a Pivot
> Hi Friends,
> i'm new to R....I have data frame having columns X Y Z....I want to
> pivot on this data frame....can any one help me on this...
> View this message in context: http://r.789695.n4.nabble.com/Create-a- > Pivot-tp4637629.html
> Sent from the R help mailing list archive at Nabble.com.
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html
> and provide commented, minimal, self-contained, reproducible code.
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.