getDOB: Returns a data.table with DOBs for all SIDs input

Description Usage Arguments Details Value Note Examples

Description

This function can be used to calculate an age variable

Usage

1
getDOB(pSIDVec)

Arguments

pSIDVec

A vector of SIDs for which DOB is wanted. These will normally be part of an 'Analysis Set', i.e. generated by 'getNetworkSet' or 'getSIDSet'.

Details

Makes a call to the database using RODBC

Value

A data.table with two columns: SID and DOB. SID is integer, DOB is POSIXct/POSIxt

Note

Draws data from vStudentCurrent (DB View), not the other 3 main data tables, so it is included to provide this necessary DB access, if DOB is required.

Examples

1
2
# Gets DOB for a couple of specific SIDs
aFewDOBs <- getDOB(c(10, 11, 12))

johninpdx/RSTools documentation built on May 19, 2019, 5:15 p.m.