[R] Deleting the last value of a vector

empyrean ctross at ucdavis.edu
Mon Apr 18 02:51:55 CEST 2011


Hey guys,

I've search a few threads about deleting a value from a vector, but no one
has addressed this question so far.

I want to delete the last value from a string of values

I have:

r = [ 1, 2, 3, 4, 5 ], and i want to make r2 = to [ 1, 2, 3, 4]

So that r2 is just like r, except that it missing the final value. 

Thanks,

--
View this message in context: http://r.789695.n4.nabble.com/Deleting-the-last-value-of-a-vector-tp3456363p3456363.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list