Hi everyone, How to a transpose a R dataset with a specified variable. If possible send the code. it will be very helpful for us. Thanks in Advance. -- View this message in context: http://www.nabble.com/how-to-Transpose-a-dataset-tp25006768p25006768.html Sent from the R help mailing list archive at Nabble.com.
you may want to try t(x) rajclinasia wrote:> > Hi everyone, > > How to a transpose a R dataset with a specified variable. If possible send > the code. it will be very helpful for us. > > Thanks in Advance. >-- View this message in context: http://www.nabble.com/how-to-Transpose-a-dataset-tp25006768p25007004.html Sent from the R help mailing list archive at Nabble.com.
rajclinasia wrote:> > Hi everyone, > > How to a transpose a R dataset with a specified variable. If possible send > the code. it will be very helpful for us. >Not clear what "with a specified variable" means. t(x) will only work with matrices; if you have read in an (all-numeric) dataset with read.table or read.csv, you will need t(as.matrix(x)). If possible send a short example of (a subset of) your data looks like and what you want it to look like after transposition -- that will be very helpful for us ... -- View this message in context: http://www.nabble.com/how-to-Transpose-a-dataset-tp25006768p25008834.html Sent from the R help mailing list archive at Nabble.com.
rajclinasia ha scritto:> Hi everyone, > > How to a transpose a R dataset with a specified variable. If possible send > the code. it will be very helpful for us. > > Thanks in Advance. >A written code of your problem would be useful for us to help you. If you have a dataframe you may want to take a look also at ?stack ?reshape -- Ottorino-Luca Pantani, Universit? di Firenze Dip. Scienza del Suolo e Nutrizione della Pianta P.zle Cascine 28 50144 Firenze Italia Tel 39 055 3288 202 (348 lab) Fax 39 055 333 273 OLPantani at unifi.it http://www4.unifi.it/dssnp/