-
Notifications
You must be signed in to change notification settings - Fork 36
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
Code quit working #138
Comments
Again a tibble! That tibble brings so much pain. Variables See issue #65 which is a duplicate of this. |
Oh! Those darn tibbles! I should have known.
Thank you for your quick response.
Morgan
…On Mon., Mar. 28, 2022, 12:07 p.m. Jari Oksanen, ***@***.***> wrote:
Again a tibble! That tibble brings so much pain.
Variables Richness, Complexity and Dist.Refuge are not variables, but
they are matrices. Please change them to variables (vectors). Currently
their dimensions are given as [46, 1], but it should only read Richness:
num -1.935, -0.935... without those dimensions.
See issue #65 <#65> which is a
duplicate of this.
—
Reply to this email directly, view it on GitHub
<#138 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUM5WNPRSNNAW3XA6IXF6KLVCH7PVANCNFSM5R3YRCQA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Just a quick follow up... in this instance, the matrices that should have been vectors were generated using the scale function in base r. I had been avoiding the use of tibbles as I know they can be problematic in general. dat$Richness = scale(dat$richAll) # this code created the matrices in the dataframe. |
@morgan-j-black You are right, base (As an aside, as recently as 2018, |
I too hastily put the blame on tibble where we have seen this problem earlier. Actually, it is possible to have even more pathological data frames, such as with We (or probably I) added the test against matrix entries after issue #65. The basic |
Hi there,
I am not sure if this issue is related at all to #135, but I have been using the same code and data for many weeks and a few days ago it quit working and produced an inexplicable error. I am using the most recent versions of R and RStudio and I have re-installed Hmsc from Github. Any suggestions would be much appreciated. Here is the call, the error, and the structure of the data the error pertains to.
Error in Hmsc(Y = Y, XData = XData, XFormula = ~CG + season, studyDesign = data.frame(Site = RE), :
all XData variables must be numeric or factors
The text was updated successfully, but these errors were encountered: