Skip to content

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

Open
sjdritz wants to merge 1 commit intoMaximilianPi:masterfrom
sjdritz:master
Open

excluding NA (species that do not phonologically overlap) from Z_m#5
sjdritz wants to merge 1 commit intoMaximilianPi:masterfrom
sjdritz:master

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