arcaravaggi / remBoot

R package for Random Encounter Modelling
GNU General Public License v3.0
3 stars 4 forks source link

REM model not fitting #25

Open smmurp2 opened 2 years ago

smmurp2 commented 2 years ago

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 commented 2 years ago

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