lastdaypresent {EloRating} | R Documentation |
last day an individual was present
Description
last day an individual was present with respect to a reference date
Usage
lastdaypresent(x, ID = "all", refdate = NULL)
Arguments
x |
output from |
ID |
character, if |
refdate |
character or Date (YYYY-MM-DD), up to which date the presence data should be considered, by default the last date of the sequene |
Details
the function can result in NA
for two reasons. 1) the ID is not found in the presence data, which is accompanied by a warning and 2) the ID was not yet present if a referene date is specified
Value
Date or NA
Author(s)
Christof Neumann
Examples
data(adv)
data(advpres)
SEQ <- elo.seq(winner = adv$winner, loser = adv$loser, Date = adv$Date,
presence = advpres)
lastdaypresent(SEQ, ID = "all", refdate = "2010-01-02")
lastdaypresent(SEQ, ID = "f", refdate = "2010-02-02")
[Package EloRating version 0.46.18 Index]