getSWNodes: Returns a vector of SIDs for Short or Long-form...

Description Usage Arguments Value Note Examples

Description

Output from this function is useful in creating subsets of data meeting survey-eligibility requirements.

Usage

1
getSWNodes(pWav, pSch, pNQW = 1, pFQW = 0)

Arguments

pWav

A specific survey wave. Waves 2, 6, and 10 are summer waves; no Short Survey or Long Survey data were collected. Hence these waves should not ever be specified.

pSch

A specific School ID.

pNQW

If 1, short-survey-eligible SIDs in this wave and school are returned (this would also include long-survey-eligibles as a subset).

pFQ

If 1, only long-survey-eligible SIDs in this wave and school are returned.

Value

An integer vector of SIDs

Note

This function will not necessarily return correct SIDs if the table dbo.StudentEligibilityWindow is not up to date. The calling code should always check this first! If 'checkEligUpdate' returns FALSE, you're OK. If not, the code should first run 'updateStuEligWin'

Examples

1
2
3
# Returns a vector of SIDs of individuals who were short-survey (NQ)
# eligible at wave 1, from school #3.
nodes <- getNQTVCs(pWav = 1, pSch = 3, pNQW = 1)

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