14 R Style Guide

The goal of this Programming Style Guide is to make the lab’s R code more consistent and easier to work with. This guide is based on the Tidyverse Style Guide by Hadley Wickham license. It differs in a few ways, and provides much more detail on variables names for the NLSY.

14.1 NLSY Variable Names

Please use the variable renamer function

14.1.1 Armed Services Vocational Apptitude Battery

( WORD_KNOWLEDGE | WORDKNOW ) = WK

( ARITHMETIC_REASONING | ARITHREASON ) = AR

( WORD_KNOWLEDGE | WORDKNOW ) = WK

( PARACOMP | PARAGRAPH_COMPREHENSION ) = PC