summaryhbreadth: summaryhbreadth

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function summarizes the ordinated host breadth from the object created by ordi.breadth.

Usage

1
summaryhbreadth(specialization, round = 5, do.order = FALSE, by = "Richness")

Arguments

specialization

The object created by the function ordi.breadth.

round

The number of digits to round results

do.order

Logical indicating whether to sort results

by

Indicate which column to sort results by. Can be "Herbivore","Richness","Breadth", or "ScaledBreadth"

Value

A dataframe showing result summary

Author(s)

James Fordyce

References

Fordyce, J.A., C.C. Nice, C.A. Hamm, & M.L. Forister. Quantifying diet breadth through ordination of host association. Ecology

See Also

ordi.breadth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
testdata<-	
	c(		
			0,0,0,0,1,0,0,0,0,0,#1
			0,0,0,0,0,0,1,1,0,0,#2
			1,1,1,0,0,0,0,0,0,0,#3
			0,0,0,0,1,1,0,1,0,1,#4
			1,1,1,0,0,0,1,0,0,0,#4
			1,1,0,0,1,0,1,0,0,0,#4
			0,0,0,1,0,0,1,0,1,1,#4
			1,0,1,0,1,1,0,0,0,1, #5
			1,1,0,0,1,0,0,1,1,1,#6
			1,1,1,0,1,1,0,1,1,1) #8


dat<-array(dim=c(10,10),data=testdata)
dat<-t(dat)
colnames(dat)<-paste("",LETTERS[1:10],sep="")
rownames(dat)<-paste("bug",1:10,sep="")

x<-ordi.breadth(dat)
summaryhbreadth(x)

ordiBreadth documentation built on May 2, 2019, 9:41 a.m.