brad-cannell / codebookr

Create Codebooks From Data Frames
https://brad-cannell.github.io/codebookr/
Other
25 stars 6 forks source link

Improve help documentation for cb_add_col_attributes #6

Closed mbcann01 closed 2 years ago

mbcann01 commented 2 years ago

Overview

At the very least, we need to document the five special attributes that cb_add_col_attributes() recognizes. Take directly from README.

The function documentation for cb_add_col_attributes() says nothing about the col_type attribute. True, it isn't a parameter, but it is a very important attribute. That needs to be may very clear. Probably in the ... section. We should probably also copy and paste some of the language from cb_add_summary_stats.

If you look at the cb_get_col_attributes() code, it looks like description, source, and col_type are attributes that aren't documented in cb_add_col_attributes(), but have special preference.

codebook()

Just needs to be way more descriptive. We should probably also copy and paste some of the language from cb_add_summary_stats.

Task list