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

excluding NA (species that do not phonologically overlap) from Z_m #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjdritz
Copy link

@sjdritz sjdritz commented Jun 24, 2023

I am interested in using this code to evaluate whether or not plant and pollinator species will interact (classification) based on their morphological traits. However, I want to exclude interactions between species who do not phonologically overlap from the Z matrix. Because there were three unique values of the Z matrix (1, 0, NA) the code was defaulting to regression, adding "na.rm = TRUE" to this line solves the issue.

Z_m <- subset(reshape2::melt(Z, na.rm = TRUE))

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

Successfully merging this pull request may close these issues.

1 participant