search for: lasta

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

Did you mean: last
2011 Aug 24
2
Append a value to a vector
...the last in activeT this value has to be append in active T and the last value in another vector call activeR has to be repeated. (at 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 th...