Re: [R] Window on a vector

2012-03-12 Thread R. Michael Weylandt
t; ________________ > From: R. Michael Weylandt > To: Alaios > Cc: R help > Sent: Monday, March 12, 2012 4:35 PM > Subject: Re: [R] Window on a vector > > It's not always true that going out of bounds in subscripting gives an > error (as you seem to

Re: [R] Window on a vector

2012-03-12 Thread Alaios
indow asks > for. > > How should I deal with that? > Regards > Alex > > > > >  From: David Winsemius > > Cc: R help > Sent: Saturday, March 10, 2012 2:49 PM > Subject: Re: [R] Window on a vector > > > On Mar 10, 20

Re: [R] Window on a vector

2012-03-12 Thread Petr Savicky
On Sat, Mar 10, 2012 at 04:44:00AM -0800, Alaios wrote: > Dear all, > I have a large vector (lets call it myVector) and I want to plot its value > with the logic below > > yaxis<-myVector[1] > yaxis<-c(xaxis,mean(myvector[2:3]) > yaxis<-c(xaxis,mean(myvector[4:8]) > yaxis yaxis > this has to sto

Re: [R] Window on a vector

2012-03-12 Thread R. Michael Weylandt
ow asks > for. > > How should I deal with that? > Regards > Alex > > > > >  From: David Winsemius > > Cc: R help > Sent: Saturday, March 10, 2012 2:49 PM > Subject: Re: [R] Window on a vector > > > On Mar 10, 2012

Re: [R] Window on a vector

2012-03-12 Thread Alaios
gards Alex From: David Winsemius Cc: R help Sent: Saturday, March 10, 2012 2:49 PM Subject: Re: [R] Window on a vector On Mar 10, 2012, at 7:44 AM, Alaios wrote: > Dear all, > I have a large vector (lets call it myVector) and I want to plot its value > with the log

Re: [R] Window on a vector

2012-03-10 Thread David Winsemius
On Mar 10, 2012, at 7:44 AM, Alaios wrote: Dear all, I have a large vector (lets call it myVector) and I want to plot its value with the logic below yaxis<-myVector[1] yaxis<-c(xaxis,mean(myvector[2:3]) yaxis<-c(xaxis,mean(myvector[4:8]) yaxisthis has to stop when the new . yaxiscorre