search for: lastr

Displaying 1 result from an estimated 1 matches for "lastr".

Did you mean: last
2011 Aug 24
2
Append a value to a vector
...t the bottom you can find the vectors) I have done this: activeT=round(as.numeric(activeT)) inactT= round(as.numeric(inactT)) lastV<-round(as.numeric(tail(lat,1))) lastA<-round(as.numeric(tail(activeT,1))) lastI<-round(as.numeric(tail(inactT,1))) if (lastV!=lastA){ append(lastV, activeT) lastR=tail(activeR,1) append(activeR,lastR) } lastR has been appended to activeR but not lastV to activeV I guess that this is related to the attributes of the vectors this is why I applied as.numeric at all the vectors. Thank you for you time and your patience :) Claudio *this are the vectors:* &gt...