Re: [R] as.integer and indexes error

2010-03-11 Thread jim holtman
another way: > x <- c(1.1,2.1,3.1,4.1,5.1) > as.integer((x - round(x)) * 10) [1] 1 1 1 0 0 > as.integer((10 * x - round(10 * x, -1))) [1] 1 1 1 1 1 > 2010/3/11 Lilia Leticia Ramírez Ramírez > Hello All, > > I would like to report the following bug or maybe you can explain if I am > wrong. > >

Re: [R] as.integer and indexes error

2010-03-11 Thread jim holtman
FAQ 7.31 2010/3/11 Lilia Leticia Ramírez Ramírez > Hello All, > > I would like to report the following bug or maybe you can explain if I am > wrong. > > I am sampling from two different populations with weights. The two > populations have the same age groups and I want to distinguish where I a

[R] as.integer and indexes error

2010-03-11 Thread Lilia Leticia Ramírez Ramírez
Hello All, I would like to report the following bug or maybe you can explain if I am wrong. I am sampling from two different populations with weights. The two populations have the same age groups and I want to distinguish where I am sampling from. That is why I am using a matrix such as: matrix a