[R] how to store a number into a vector

David Winsemius dwinsemius at comcast.net
Sun Jan 23 23:31:21 CET 2011


On Jan 23, 2011, at 1:39 PM, Quan Zhou wrote:

> Hi Everyone,
> A quick question how to store a number like 12345 to a vector or  
> array with
> size(1,5), like 1, 2, 3, 4, 5

?strsplit
?unlist


> So I can compare if the last three digits of this number is the same  
> with
> some other numbers.



David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list