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

REM model not fitting #25

Open
smmurp2 opened this issue Oct 12, 2022 · 1 comment
Open

REM model not fitting #25

smmurp2 opened this issue Oct 12, 2022 · 1 comment

Comments

@smmurp2
Copy link

smmurp2 commented Oct 12, 2022

My data are formatted with 4 columns (Site, Count, Distance, Theta), as specified in the vignette. However when I attempt to fit the REM, I receive the following:

rem(grpDat_BTJ_rand[[1]], tm = tm_BTJ_18S_rand, v = v_BTJ_18S) #2018 Summer
[1] NA
Warning messages:
1: In mean.default(dat[, 3], na.rm = TRUE) :
argument is not numeric or logical: returning NA
2: In mean.default(dat[, 4], na.rm = TRUE) :
argument is not numeric or logical: returning NA

Both the Distance and Theta columns are formatted as numeric (see below), so it is unclear why these warnings keep popping up and an estimate is not produced.

grpDat_BTJ_rand[[1]]

A tibble: 1 x 4

Site Count Distance Theta

1 1 15 0.005 0.766
#... with 39 more rows

I'm using v4.2.1 of R.

@smmurp2
Copy link
Author

smmurp2 commented Oct 12, 2022

rem() can't read tibbles; the input file must be a dataframe (facepalm).

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