View source: R/lastdaypresent.R
lastdaypresent | R Documentation |
last day an individual was present with respect to a reference date
lastdaypresent(x, ID = "all", refdate = NULL)
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 |
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
Date or NA
Christof Neumann
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.