| datasets | R Documentation |
Fictious examples of data sets to calculate social bonds
dataset1
dataseq data.frame with interaction data
ot data.frame with observation time of individual protocols
presence presence table of focal individuals
presence2 presence table of nonfocal individuals
prefdyads dyads with higher rate/longer duration of interactions
focals character, focal individuals
nonfocs character, nonfocal individuals
The data sets included have been generated with the datagen function. See examples for the code...
## Not run: dataset1 <- datagen(no=2000, ni=10, nadd=20, friendprop=0.2, presence=c(0.5, 0.4)) dataset2 <- datagen(no=2000, ni=30, nadd=0, friendprop=0.2, presence=c(0.5, 0.4)) dataset3 <- datagen(no=200, ni=3, nadd=3, friendprop=0.2, presence=c(0.5, 0.4)) dataset4 <- datagen(1000, ni=14) domseq4 <- domgen(dataset4, 500, drawprop=0) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.