select only rows if its value in a particular column is less than its value in the other column

Posted by bazon on Stack Overflow See other posts from Stack Overflow or by bazon
Published on 2010-05-18T04:47:13Z Indexed on 2010/05/18 4:50 UTC
Read the original article Hit count: 255

Filed under:
|
|
|

Hi folks,

I am using R and need to select rows with aged (age of death) less than or equal to laclen (lactation length).

df:
 id1   id2    laclen    aged
9830  64526    26       6 days
7609  64547    28       0 days
9925  64551     3       0 days
9922  64551     3       5 days
9916  64551     3       8 days
9917  64551     3       8 days
9914  64551     3       9 days

Any help would be appreciated!

Bazon

© Stack Overflow or respective owner

Related posts about select

Related posts about rows