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

within kernel.build(), hyper.build() fails when the community is made of two spp #3

Open
MarcoPatacca opened this issue Aug 1, 2023 · 1 comment

Comments

@MarcoPatacca
Copy link

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

@cardosopmb
Copy link
Owner

cardosopmb commented Aug 1, 2023 via email

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

2 participants