You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem that seems to be within the hyper.build() function called by the kernel.build() fun when the community has 2 spp. I have 25 traits.
I get the error:
Error in 1:ncol(trait) : argument of length 0
My code works for bigger communities (e.g. 4 spp).
It seems a silly thing with re-printing the names of the column in the hyper.build() fun, i.e.:
_ if (is.null(colnames(trait)))
colnames(trait) = paste("Trait", 1:ncol(trait), sep = "")_
Within the kernel.build() function my parameter for axes = 3. I think the issue may be around this. I transposed the trait matrix and works, but of course is not the same output as the matrix would then be traits x spp instead than the other way around.
Would you have some hints regarding this?
Thanks in advance for your time!!
Marco
The text was updated successfully, but these errors were encountered:
Hi Marco,
If you have only 2 species cannot build an hyperspace with 3 dimensions. In any case, with only 2 species it does not make sense to do this kind of analyses. Wonder if you are trying to build an hyperspace for each community separately? If that is the case remember that you should use always the same space including all communities.
Pedro
From: MarcoPatacca ***@***.***>
Sent: Tuesday, 1 August 2023 12.07
To: cardosopmb/BAT ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [cardosopmb/BAT] within kernel.build(), hyper.build() fails when the community is made of two spp (Issue #3)
Hi Pedro,
I'm having a problem that seems to be within the hyper.build() function called by the kernel.build() fun when the community has 2 spp. I have 25 traits.
I get the error:
Error in 1:ncol(trait) : argument of length 0
My code works for bigger communities (e.g. 4 spp).
It seems a silly thing with re-printing the names of the column in the hyper.build() fun, i.e.:
_ if (is.null(colnames(trait)))
colnames(trait) = paste("Trait", 1:ncol(trait), sep = "")_
Within the kernel.build() function my parameter for axes = 3. I think the issue may be around this. I transposed the trait matrix and works, but of course is not the same output as the matrix would then be traits x spp instead than the other way around.
Would you have some hints regarding this?
Thanks in advance for your time!!
Marco
—
Reply to this email directly, view it on GitHub <#3> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB2SCQQ4CF3FHDBQC5T2FOLXTDBJXANCNFSM6AAAAAA27OAPG4> .
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Hi Pedro,
I'm having a problem that seems to be within the hyper.build() function called by the kernel.build() fun when the community has 2 spp. I have 25 traits.
I get the error:
Error in 1:ncol(trait) : argument of length 0
My code works for bigger communities (e.g. 4 spp).
It seems a silly thing with re-printing the names of the column in the hyper.build() fun, i.e.:
_ if (is.null(colnames(trait)))
colnames(trait) = paste("Trait", 1:ncol(trait), sep = "")_
Within the kernel.build() function my parameter for axes = 3. I think the issue may be around this. I transposed the trait matrix and works, but of course is not the same output as the matrix would then be traits x spp instead than the other way around.
Would you have some hints regarding this?
Thanks in advance for your time!!
Marco
The text was updated successfully, but these errors were encountered: