commfish / coho_known_age_study

1 stars 1 forks source link

not working correctly #8

Closed fssem1 closed 5 years ago

fssem1 commented 5 years ago

https://github.com/commfish/coho_known_age_study/blob/eefbfbca3b7b64d744ad39cc976f7760fe1f15a5/code/cohoage_1_DataImport_JTP.R#L58

I don't think this line is filtering blank zones for age 2. You may have to add another ifelse statement... mutate(Distance = ifelse(Age == 1 & Zone == 1, Distance2, ifelse(Age == 2 & Zone == 2, Distance2, ifelse(Age == 2 & Zone =1, Distance2, NA)))

Originally there were zone 3's in the file for age 2, so if the zone was > than the age, it could be deleted.

fssem1 commented 5 years ago

Fixed the plus group issue