Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add catch in mrClosed() for data.frame as first argument and other vectors also provided #22

Closed
droglenc opened this issue Oct 28, 2016 · 1 comment
Assignees

Comments

@droglenc
Copy link
Contributor

droglenc commented Oct 28, 2016

For example,

lmb.dat <- data.frame(sample=1:4,
                      Total=   c(18,18,19,35),  # total number of fish (n)
                      Recaps=  c( 0, 9, 5,12),  # num recaptured fish (m)
                      Unmarked=c(18, 9,14,23),  # num fish not recaptured 
                      At_Large=c( 0,18,27,41),  # num marked fish prior to sample (M)
                      Rsubi=   c(18,18,19, 0))  # num marked fish returned to pop (R)
lmb.dat

library(FSA)

lmb.num1 <- mrClosed(lmb.dat, n=lmb.dat$Total, m=lmb.dat$Recaps, M=lmb.dat$At_Large, method="Schnabel")
summary(lmb.num1)

lmb.num2 <- mrClosed(lmb.dat, n=lmb.dat$Total, m=lmb.dat$Recaps, R=lmb.dat$Rsubi, method="Schnabel")
summary(lmb.num2)
@droglenc droglenc self-assigned this Oct 28, 2016
@droglenc
Copy link
Contributor Author

Partially (at least) address in v0.8.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant