dot | R Documentation |
dyadic observation time
dot( ot.source, dyads, daterange = NULL, presence = NULL, ot.style = "table", exclcols = NULL )
ot.source |
observation time data, for the moment only supported in table form, not yet in party-style. Must contain a "focal" column, a date column, and a observation time column |
dyads |
a character matrix with four columns, the first two correspond to the individual ids, and the third and fourth are dyadic, first in alphabetical order, second the reversed of that, and in which individuals are separated by |
daterange |
character of length 2, with date range... |
presence |
presence "matrix" (usually a data frame...); see |
ot.style |
character, either |
exclcols |
character string with column names (or numerical index of these) to be excluded. Normally used to exclude columns that neither represent IDs, date or focal. |
returned are only dyads that were co-resident at least one day and were observed for more than zero minutes/hours (depending on the unit of the OT) MAYBE NOT TRUE ANYMORE???
data.frame
## Not run: data(dataset3) # limit presence to focals (not yet differentiated between presence and presence2 in the example data sets..) focalpresence <- dataset3$pres[, c("date", "m", "g", "y")] dot(daterange = c("2000-01-11", "2000-04-01"), OT = dataset3$ot, presence = dataset3$presence) dot(daterange = c("2000-01-11", "2000-04-01"), OT = dataset3$ot, presence = NULL) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.