I got some error messages like this when running a campaign default scenario for COD, gave me something like this:
Wondering if Kaiyue has encountered this or not, as I haven't changed the code. I think these few lines can be fixed:
line 553 Change true_confirm_rate_admin1 <- rc_list[[layer_idx]]$rc1$true_confirm_rate to something like true_confirm_rate_admin1 <- head(rc_list[[layer_idx]]$rc1, nrow(shp1))$true_confirm_rate;
line 557 change true_confirm_rate_admin2 <- rc_list[[layer_idx]]$rc2$true_confirm_rate to something like true_confirm_rate_admin2 <- head(rc_list[[layer_idx]]$rc2, nrow(shp2))$true_confirm_rate
I changed the code like above and can run without the error.
I got some error messages like this when running a campaign default scenario for COD, gave me something like this:
Wondering if Kaiyue has encountered this or not, as I haven't changed the code. I think these few lines can be fixed:
line 553 Change
true_confirm_rate_admin1 <- rc_list[[layer_idx]]$rc1$true_confirm_rate
to something liketrue_confirm_rate_admin1 <- head(rc_list[[layer_idx]]$rc1, nrow(shp1))$true_confirm_rate
;line 557 change
true_confirm_rate_admin2 <- rc_list[[layer_idx]]$rc2$true_confirm_rate
to something liketrue_confirm_rate_admin2 <- head(rc_list[[layer_idx]]$rc2, nrow(shp2))$true_confirm_rate
I changed the code like above and can run without the error.