Description Usage Arguments Value Slots See Also Examples
Converts a data.frame
to a eppMatrix object using a
~male+female
formula.
1 |
data |
a |
pairs |
a formula indicating the extra-pair male and the extra-pair female in that order. |
An object of class eppMatrix
with two slots.
male
extra-pair male ID-s as character vectors
female
extra-pair female ID-s as character vectors
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | eppPairs = data.frame(male = c("m1", "m2", "m1"), female=c("f3", "f1", "f2") )
e = eppMatrix(eppPairs, pairs = ~ male + female)
class(e)
showClass("eppMatrix")
data(bluetit_breeding)
data(bluetit_epp)
b = bluetit_breeding[bluetit_breeding$year_ == 2010, ]
eppPairs = bluetit_epp[bluetit_epp$year_ == 2010, ]
breedingDat = SpatialPointsBreeding(b, id = 'id', coords = ~ x + y, breeding = ~ male + female)
eppDat = eppMatrix(eppPairs, pairs = ~ male + female)
plot(breedingDat, eppDat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.