conMatrix | R Documentation |
Create a matrix that can be used for social network analysis.
conMatrix(mtraj, idcol = "burst", output = "count")
mtraj |
an object of the class |
idcol |
column id associated with IDs of the individuals, default is the 'burst' |
output |
('count' or 'rate') whether to compute the counts of contacts in the contact matrix (default) or the contact-rate. |
This function is used to calculate the contact rates between individuals and output them in the form of a matrix. NOTE: This function is designed to be used only when a single ltraj object is input into the conProcess function. I.e., single-species contact networks.
A matrix, with the contact rates between individuals.
Long, JA, Webb, SL, Harju, SM, Gee, KL (2022) Analyzing Contacts and Behavior from High Frequency Tracking Data Using the wildlifeDI R Package. Geographical Analysis. 54, 648–663.
conProcess, conPairs
## Not run:
data(does)
doecons <- conProcess(does,tc=15*60,dc=50)
doemat <- conMatrix(doecons)
doemat_rate <- conMatrix(doecons,output='rate')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.