Closed jess-shue closed 1 year ago
Sorry, I think this is causing a problem because some trees don't have a: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
current_year_status | current_year_comment -- | -- NA | stem not sampled, info automatically filled from previous year info
Sorry @ValentineHerr, I completely skipped reading a section of my code earlier:
add mortality column: 1 = record mortality data, 0 = do not
filter the data for stems >= 100 mm and mortality status 2022 of 'A', 'AU', or 'DS'
stem.mort$mortality <- with(stem.mort, ifelse(dbh >= 100 & current_year_status != "DC", 1, 0))
My thoughts on this were to skip any stems in the mortality data that are less than 100 mm DBH (the small ash etc.) and anything previously recorded as 'DC' - down and dead. Does that make sense?