Hii, I will save the elements of the vector median<-with(x, tapply(V3, grup, median)). The output of this vector is: 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 400 425 450 475 500 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8 17.8 17.8 17.8 17.7 17.7 Can anybody help me how to do it. I will save it to a text file... greetings, johnh -- View this message in context: http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22498222.html Sent from the R help mailing list archive at Nabble.com.
'str(x)' would help. I assume that this is a named list, so this might plot it for you: plot(names(x), x) On Fri, Mar 13, 2009 at 10:59 AM, johnhj <jharris at web.de> wrote:> > Hii, > > I will save the elements of the vector median<-with(x, tapply(V3, grup, > median)). The output of this vector is: > > ?25 ? 50 ? 75 ?100 ?125 ?150 ?175 ?200 ?225 ?250 ?275 ?300 ?325 ?350 ?375 > 400 ?425 ?450 ?475 ?500 > 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8 > 17.8 17.8 17.8 17.7 17.7 > > Can anybody help me how to do it. I will save it to a text file... > > greetings, > johnh > -- > View this message in context: http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22498222.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org 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. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
Hi, take a look to ?write.table regards 2009/3/13 johnhj <jharris@web.de>> > Hii, > > I will save the elements of the vector median<-with(x, tapply(V3, grup, > median)). The output of this vector is: > > 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 > 400 425 450 475 500 > 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8 > 17.8 17.8 17.8 17.7 17.7 > > Can anybody help me how to do it. I will save it to a text file... > > greetings, > johnh > -- > View this message in context: > http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22498222.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org 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. >[[alternative HTML version deleted]]
David Winsemius
2009-Mar-13 15:16 UTC
[R] Save the elements of an atomic vector to a text fil
?cat On Mar 13, 2009, at 10:59 AM, johnhj wrote:> > Hii, > > I will save the elements of the vector median<-with(x, tapply(V3, > grup, > median)). The output of this vector is: > > 25 50 75 100 125 150 175 200 225 250 275 300 325 350 > 375 > 400 425 450 475 500 > 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 > 17.7 17.8 > 17.8 17.8 17.8 17.7 17.7 > > Can anybody help me how to do it. I will save it to a text file... > > greetings, > johnh > -- > View this message in context: http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22498222.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org 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.David Winsemius, MD Heritage Laboratories West Hartford, CT
Thank you all, I did it with "write.table"... greetings, johnh johnhj wrote:> > Hii, > > I will save the elements of the vector median<-with(x, tapply(V3, grup, > median)). The output of this vector is: > > 25 50 75 100 125 150 175 200 225 250 275 300 325 350 375 > 400 425 450 475 500 > 17.8 17.8 17.5 17.8 17.7 17.6 17.7 17.6 17.8 17.7 17.6 17.7 17.8 17.7 17.8 > 17.8 17.8 17.8 17.7 17.7 > > Can anybody help me how to do it. I will save it to a text file... > > greetings, > johnh >-- View this message in context: http://www.nabble.com/Save-the-elements-of-an-atomic-vector-to-a-text-fil-tp22498222p22499918.html Sent from the R help mailing list archive at Nabble.com.