Closed mickayla32 closed 3 years ago
It's been a long time since I've wrote these functions, so I'm not sure how much help I can be, but if you send me the ebird_habitat.csv to mes335@cornell.edu I can take a look
I remember having this error when I was doing something similar, I think the issue is with the .csv file, it most likely has duplicates. If you were following part 3 of the ebird best practices, then I can probably tell you where this error is coming from.
@lime-n I actually figured it out-- it had to do with using more than 1 year of land cover data. Thank you though!
@lime-n @mstrimas @mickayla32 Still facing a similar issue. I am unsure of how the dataframe could potentially have different values, given the process of covariate preparation. Any suggestions?
Hi! I'm trying to run occupancy modeling following the eBird best practices methods, but I am using data split up by ecoregion. I realize that this is not the typical way to conduct occupancy modeling while following these eBird best practices methods, but I was hoping to use eBird data from 2015-2019, and land cover data from just 2019 to conduct a single season occupancy model by ecoregion (though I realize that typically a single-season occupancy model uses data from a single year). All of my code is essentially the same up to section 5.2 in the eBird best practices--
I then filtered my data by ecoregion type, starting with the first ecoregion:
When I get to the format_unmarked_occu() function:
I get the error:
I tried looking at the suggestions in this post, but have not had any luck. So, I tried using the code from the function itself to remove any rows that contain landcover types that are not constant across sites:
But this produces the same error... Is there any way to remove the rows (sites) that are causing this error before running the format_unmarked_occu function?
I can provide my ebird_habitat .csv file if needed!