[R] something like vlookup in R?

2010-05-27 Thread Roslina Zakaria
Hi r users,   I would like sort of   cdf         seq   rand 0.00E+00    0 0.262123478 1.56E-03    20    0.964293344 1.55E-02    40    0.494827113 5.30E-02    60    0.733726005 1.16E-01    80    0.800408948 1.97E-01    100   0.925748466 2.88E-01    120   0.047578356 3.80E-01    140  

Re: [R] something like vlookup in R?

2010-05-27 Thread Glen Barnett
Your question is impossible to parse I would like sort of ... sort of what? vlookup is an Excel function that returns the value in one column based on a value in another column; by default it finds the index of the largest value in the first column of the table less than the target, and returns