Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNAs in mrClosed #8
Comments
|
This has been addressed in the latest development version of The version with
... gives the same results but with warnings as the version without
|
NAs cause problems with mrClosed(). Need to make a catch and send the user a warning.
Here is the issue. In a Schnabel method the first sample will have no marked fish (and thus
m[1]=0) and it is irrelevant how many marked fish are returned to the population after the last sample (thus, eitherR[length(R)]=0orR[length(R)]=n[length(n)]. However, some users may enterNAvalues for these positions, which will cause an error as shown below.A better result would be to catch these and replace them with zeroes with a warning sent to the user.