This is where I ran in to some issue running an early version of the SCR model with species other than CPIC...
MultiSessionModel_NHedits.R
EM_CPIC <- EDF_CPIC %>%
group_by(site_num, ind, trap_id_edited, day) %>%
select(site_num, ind, trap_id_edited, day) %>%
mutate(count = 1) %>%
summarise_all(sum) %>%
#spread(trap_id_edited, count, fill = 0) %>%
ungroup() %>%
mutate(id = as.integer(as.factor(ind)))
EM_CPIC$site_trap <- ave(EM_CPIC$trap_id_edited, EM_CPIC$site_num, FUN = function(x) as.numeric(factor(x)))
This is where I ran in to some issue running an early version of the SCR model with species other than CPIC...
MultiSessionModel_NHedits.R