[R] Error: subscript out of bounds

2010-10-18 Thread IRD
Dear All I have problem with this: IWJR.temp -IWJR.missing[sample(1:length(IWJR.missing),1),] Error: subscript out of bounds How I can solved this. Thanks IRD __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] delete data row

2010-10-16 Thread IRD
Dear All I have data like this: IR xy [1,] 5 2.865490 [2,] 3 1.454611 [3,] 3 2.258772 [4,] 6 1.476128 [5,] 4 2.771606 y.j y 2.865490 and I want to delete data row in IR where y = y.j How I can do. IRD __ R-help@r-project.org