Re: [R] Save the elements of an atomic vector to a text fil

2009-03-16 Thread David Winsemius
-- David Winsemius On Mar 16, 2009, at 4:35 PM, johnhj wrote: I can save a atomic vector with the write.table function so far... But how can I save 2 vectors to a text file ? I tried to do it by "merging" 2 vector to 1 vector like th

Re: [R] Save the elements of an atomic vector to a text fil

2009-03-16 Thread johnhj
I can save a atomic vector with the write.table function so far... But how can I save 2 vectors to a text file ? I tried to do it by "merging" 2 vector to 1 vector like this here: summary_vector<-c(vector1, vector2) and tried to write the contents of summary_vector to a textfile with: write.ta

Re: [R] Save the elements of an atomic vector to a text fil

2009-03-13 Thread johnhj
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 > 40

Re: [R] Save the elements of an atomic vector to a text fil

2009-03-13 Thread David Winsemius
?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

Re: [R] Save the elements of an atomic vector to a text fil

2009-03-13 Thread Usuario R
Hi, take a look to ?write.table regards 2009/3/13 johnhj > > 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

Re: [R] Save the elements of an atomic vector to a text fil

2009-03-13 Thread jim holtman
'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 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  

[R] Save the elements of an atomic vector to a text fil

2009-03-13 Thread johnhj
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.