We probably should have a better idea of what the raw data looks like and perhaps a bit better idea of what the analyis is to show. Have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html for some suggestions. In particular see the discussion about dput() for the best way to provide sample data to the help list.
John Kane Kingston ON Canada > -----Original Message----- > From: p.jagad...@inrhythm-inc.com > Sent: Tue, 9 Jun 2015 01:40:53 -0700 (PDT) > To: r-help@r-project.org > Subject: [R] Cross tabulation with top one variable and side as multiple > variables > > Hi: > > I have a huge data with lot of variables and I need to check the trend > variations from year to year. In order to do so, I have to cross tabulate > the year variable as top (constant) and all the remaining variables as > side > (attached the cross tabulation report). I have searched the forums but > the > syntax I could find for cross tabulation is between 2 or 3 variables. So > i > would request to provide a code which can print the data in the same way > as > in the attached. > <http://r.789695.n4.nabble.com/file/n4708379/Untitled.png> > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Cross-tabulation-with-top-one-variable-and-side-as-multiple-variables-tp4708379.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.