Re: [R] Update dataframe based on some conditions

2015-10-22 Thread david . kaethner
Hi, what I find a little confusing about your example: If there are several positions with a REF of, say, 999, why do you not just add them up to a single position? Because if you have the same position in several rows, than REF is not a unique identifier for that position. You would need the r

[R] Update dataframe based on some conditions

2015-10-21 Thread Jorge I Velez
Dear R-help, I am working on what it seems to be a simple problem, but after several hours trying to come up with a solution, unfortunately I have not been able to. I would like to go from "datain" to "dataout", that is, create the NEWREF variable according with some restrictions, and update the