Hello, I have a data like this:1 2331 3331 4551 3452 5432 4332 3442 4003 4443 1113 0003 432I want to change it to this new dataset:c1 ? ?c2 ? ? c3233 ?543 ?444333 ?433 ?111455 ?344 ?000345 ?400 ?432 ?How can I do this in R? Please if this not the correct place to ask ?my queston.. then could you please guid me , where should I ask my question?kind regards,Zahra [[alternative HTML version deleted]]
Dear Zahra Your email is completely unreadable because you posted in HTML. Please reset your mailer and try again. On 13/09/2015 06:12, Zahra Karimi via R-help wrote:> Hello, > I have a data like this:1 2331 3331 4551 3452 5432 4332 3442 4003 4443 1113 0003 432I want to change it to this new dataset:c1 c2 c3233 543 444333 433 111455 344 000345 400 432 > How can I do this in R? Please if this not the correct place to ask my queston.. then could you please guid me , where should I ask my question?kind regards,Zahra > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >-- Michael http://www.dewey.myzen.co.uk/home.html
You are in the right place but the question in not very clear. Have a look at the links below for some suggestions on how to ask a question on R-help. I think we need the data in dput() format. See ?dput or the discussion of dput() in the links. http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html Did you intend that the last item in the data set be 432I where that last character is an I (?? not a one 1? John Kane Kingston ON Canada> -----Original Message----- > From: r-help at r-project.org > Sent: Sun, 13 Sep 2015 05:12:07 +0000 (UTC) > To: r-help at r-project.org > Subject: [R] a question about data manipulation in R > > Hello, > I have a data like this:1 2331 3331 4551 3452 5432 4332 3442 4003 4443 > 1113 0003 432I want to change it to this new dataset:c1 ? ?c2 ? ? c3233 > 543 ?444333 ?433 ?111455 ?344 ?000345 ?400 ?432 > ?How can I do this in R? Please if this not the correct place to ask ?my > queston.. then could you please guid me , where should I ask my > question?kind regards,Zahra > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.