date_b: Converts dates in a Biograph object to dates in another format
Description
Converts dates in a Biograph object to dates in another format. The function converts an entire Biograph object. It calls the function date_convert, which converts a vector of dates.
Usage
date_b(Bdata,selectday,format.out,covs)
Arguments
Bdata
Biograph object
selectday
If input date is in Century Month Code (year and month), the argument selectday gives the day of the month. Default value is one, the transition occurs on the 1st of the month. The argument may be omitted.
format.out
Format of output date
covs
Vector of covariates that are dates (that need to be converted too). The dates should be in the same format as the other dates.
Value
Biograph object with dates in new format (format.out)