### Example with table
Matrix = matrix(c(13, 26, 26, 13), ncol=2)
phi(Matrix)
### Example with two vectors
Species = c(rep("Species1", 16), rep("Species2", 16))
Color = c(rep(c("blue", "blue", "blue", "green"),4),
rep(c("green", "green", "green", "blue"),4))
phi(Species, Color)
Run the code above in your browser using DataLab