Re: [R] While loop history

2013-04-08 Thread C W
an using them. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > > > -----Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf > > Of C W > > Sent: Sunday, April 07, 2013 3:11 PM >

Re: [R] While loop history

2013-04-08 Thread MacQueen, Don
There are a number of different ways to do this, so it would have been helpful if you had set the context with a stripped down example. That said, here are some pointers: > x1 <- NULL > x1 <- c(x1,3) > x1 [1] 3 > x1 <- c(x1,4) > x1 [1] 3 4 So you see that you can add elements to the end of a vect

Re: [R] While loop history

2013-04-07 Thread William Dunlap
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of C W > Sent: Sunday, April 07, 2013 3:11 PM > To: John Kane > Cc: r-help@r-project.org; Baylee Smith > Subject: Re: [R] While loop history > > May I say also ask one thing?

Re: [R] While loop history

2013-04-07 Thread Jeff Newmiller
anada >> >> >> > -Original Message- >> > From: bayywa...@gmail.com >> > Sent: Sun, 7 Apr 2013 14:36:33 +1200 >> > To: r-help@r-project.org >> > Subject: [R] While loop history >> > >> > Hi, >> > I am ne

Re: [R] While loop history

2013-04-07 Thread C W
ON Canada > > > > -Original Message- > > From: bayywa...@gmail.com > > Sent: Sun, 7 Apr 2013 14:36:33 +1200 > > To: r-help@r-project.org > > Subject: [R] While loop history > > > > Hi, > > I am new at R and still trying to get the hang of things.

Re: [R] While loop history

2013-04-07 Thread John Kane
ust write the values into the vectors as you proceed through the loop. John Kane Kingston ON Canada > -Original Message- > From: bayywa...@gmail.com > Sent: Sun, 7 Apr 2013 14:36:33 +1200 > To: r-help@r-project.org > Subject: [R] While loop history > > Hi, > I a

[R] While loop history

2013-04-07 Thread Baylee Smith
Hi, I am new at R and still trying to get the hang of things. I am running a while loop and wish to save the results of each iteration. The results are a vector x of length two and I wish to save the results of each iteration as two vectors, one for x[1] and the other for x[2]. Thanks! [[