-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In
makeTwins(),usedID <- c(usedID, ID_twin1)runs beforeID_twin1is sampled, sousedIDincludesNAon the first iteration. That makes the filter!(ped$ID %in% usedID)evaluate toNAfor all IDs (because%in%withNAyieldsNA), which can causeresample()to seeNAcandidates and fail or behave unpredictably. Only appendID_twin1tousedIDafter it has a non-NA value (or drop NAs fromusedIDbefore using it in%in%).
Originally posted by @Copilot in #115
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels