getMSRIDVecs: Returns a list of *Row* ID vectors for each middle school...

Description Usage Arguments Details Value Note Examples

Description

The function is used for multiple middle school districts to add structural zeros to a wave 1 network edge table.

Usage

1
getMSRIDVecs(mSchVec, sidRowID)

Arguments

mSchVec

A numeric vector of middle school IDs to be separated at Wave 1 (only, because in this study, participants are in middle school only for Wave 1) by structural zeros.

sidRowID

A dataframe-format crosswalk of the SIDs and corresponding Row IDs in the analysis set being developed by the function that calls this one.

Details

Adding structural zeros is an option of 'getNetworkSet', which is where this function is currently used. In the PInf study, this is only meaningful for middle schools from the same school district at Wave 1.

Value

A length(mSchVec) list of Row IDs of individuals within each of the middle schools with IDs in 'mSchVec'.

Note

Internal Function, NOT EXPORTED

Examples

1
2
3
# Gets dataframe including SIDs for the wave vector 'mSchVec' and the
# two-column dataframe 'sidRowID'.
msIDList <- getMSRIDVecs (mSchVec, sidRowID)

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