I am trying to test a couple of models and I'm having a problem with the read.capthist() command.
When I use read.capthist() with a capture file that has two sessions (Adults and Pups) I have no problem.
Adults.And.Pups.2014 <- read.capthist("Capture_File_Adults_And_Pups_2014.txt", "Detection_File_No_Extra_Traps.txt", detector = "multi", fmt="trapID", noccasions = c(6,6))
But when I separate the Adults and Pups into separate files, and therefore only a single session,
Adults.2014 <- read.capthist("Capture_File_Adults_2014.txt", "Detection_File_No_Extra_Traps.txt",
detector = "multi", fmt="trapID", nooccasions = 6)
I get the following error message.
Error in rep(NA, nfield - nvar) : invalid 'times' argument
Anyone have any suggestions?
Thanks