brad-cannell/codebookr

Vignette: Many variables

Opened this issue · 1 comments

Overview

This came up while working on the L2C data that contains around 1,300 columns. Using cb_add_col_attributes() creates really long code blocks that aren't always easy to work with. I need to create a vignette (and perhaps some new methods) for efficiently adding attributes to data with so many variables.

  • Use a spreadsheet? Use CSV format for versioning.
  • Add the source like we do in L2C?

@mbcann01 To address this, I created a new function, cb_add_column_attributes_from_csv_file that takes the data frame and a CSV file containing a data frame with the column attributes as arguments. I also created a sample CSV file test_attributes.csv for testing this on the study data frame.