-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error in if (any(low.bound)) { : missing value where TRUE/FALSE needed #111
Comments
Sorry for your troubles. If you have not already, run under the slightly
updated version on gitHub
devtools::install_github("tmcd82070/Rdistance")
assuming that does not fix it, send me a subset of your data to test.
…On Fri, Jun 28, 2024 at 2:09 PM Kelsey King ***@***.***> wrote:
I am getting this error " Error in if (any(low.bound)) { : missing value
where TRUE/FALSE needed" on files that used to run fine from 2022, after
adjusting the data to include units() ='m' on the appropriate variables as
described in the Rdistance 3.0 information. I'm getting numerous errors on
a new dataset, and unable to run the same old autoDistSamp code on data
from 2021/2022.
—
Reply to this email directly, view it on GitHub
<#111>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEZRTDLM2ZM6HLHDESAQI3ZJW7H7AVCNFSM6AAAAABKCOCVNOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DCMJQGQZTCMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
[image: Logo] <https://mcdonalddatasciences.com/>
Trent McDonald, Ph.D. | President and Founder
*McDonald Data Sciences, LLC*Clear, Concise, Cutting-edge Analyses
w: mcdonalddatasciences.com <http://mcdonalddatasciences.com/>
p: 307.760.4721
|
Data:
When running the current github, I get a different error. Code and error below.
|
Kelsey,
I am back from vacation and will take a look this week.
Trent
…On Mon, Jul 1, 2024, 12:56 PM Kelsey King ***@***.***> wrote:
Data:
detect=testDetect.csv
<https://github.com/user-attachments/files/16057822/testDetect.csv>
site=testSite.csv
<https://github.com/user-attachments/files/16057823/testSite.csv>
units(site$length)='m'
units(detect$dist)='m'
When running the current github
dfun =dfuncEstim(formula = dist ~ 1, detectionData = detect, siteData = site, pointSurvey = FALSE, likelihood="negexp",series="simple",expansion=1)
est = abundEstim(dfunc = dfun, detectionData = detect, siteData = site, area = NULL)
Error in factorLevels[[j]] <- unique(dfunc$model.frame[, factorNames]) :
attempt to select less than one element in integerOneIndex
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEZRTFAZ7VNUHYWMY3BNFTZKGQ4ZAVCNFSM6AAAAABKCOCVNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQHAYTCNZYHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello, so in regards to the errors I've received such as "Error in F.start.limits(likelihood, expansions, w.lo, w.hi, dist, covars, : I've found a strange solution. In the detection data, if there is a column, such as site (used in my data), it causes the dfuncEstim() function to produce this error with some names but not others. When I remove this column, I have no trouble. I can't figure out why one of my site names wouldn't work, because there were no numbers in it (two of the three had numbers and the word "Area" in it), but it was a site name with 27 characters (there were longer names with numbers, and "()" that worked just. For the ones that threw errors, removing the "site" column stopped the error. Note that the function code does not include 'site' anywhere in the call. Hopefully you can reproduce this error easily and debug, but let me know if you want examples. |
very strange. Looking into it, but will take some time.
…On Tue, Aug 6, 2024 at 4:49 PM Kelsey King ***@***.***> wrote:
Hello, so in regards to the errors I've received such as "Error in
F.start.limits(likelihood, expansions, w.lo, w.hi, dist, covars, :
object 'wlo' not found" and "Error in seq.default(w.lo, w.hi, length =
nTrapazoids) : 'to' must be a finite number"
I've found a strange solution. In the detection data, if there is a
column, such as site (used in my data), with ANY numbers present in the
column, it causes the dfuncEstim() function to produce this error. When I
remove this column, I have no trouble.
Note that the function code does not include 'site' anywhere in the call.
Hopefully you can reproduce this error easily and debug, but let me know
if you want examples.
—
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEZRTAF2SFMK5IBHQMILL3ZQFHGBAVCNFSM6AAAAABKCOCVNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZSGI4DQNZWGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
[image: Logo] <https://mcdonalddatasciences.com/>
Trent McDonald, Ph.D. | President and Founder
*McDonald Data Sciences, LLC*Clear, Concise, Cutting-edge Analyses
w: mcdonalddatasciences.com <http://mcdonalddatasciences.com/>
p: 307.760.4721
|
I am getting this error " Error in if (any(low.bound)) { : missing value where TRUE/FALSE needed" on files that used to run fine from 2022, after adjusting the data to include units() ='m' on the appropriate variables as described in the Rdistance 3.0 information. I'm getting numerous errors on a new dataset, and unable to run the same old autoDistSamp code on data from 2021/2022.
The text was updated successfully, but these errors were encountered: