Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vignette: Many variables #44

Open
mbcann01 opened this issue Aug 18, 2023 · 1 comment
Open

Vignette: Many variables #44

mbcann01 opened this issue Aug 18, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mbcann01
Copy link
Member

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 mbcann01 converted this from a draft issue Aug 18, 2023
@mbcann01 mbcann01 self-assigned this Aug 18, 2023
@mbcann01 mbcann01 added the documentation Improvements or additions to documentation label Aug 18, 2023
@edambo edambo moved this from Develop Next to Active Development in codebookr Jun 7, 2024
@edambo
Copy link

edambo commented Jun 7, 2024

@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.

edambo added a commit to edambo/codebookr that referenced this issue Jun 13, 2024
- Related to issue brad-cannell#44
- If this commit is accepted, minor issues such as the length of code lines will be fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Active Development
Development

No branches or pull requests

2 participants