camr_new_codebook_entry | R Documentation |
Function to create a data frame of additional
class codebook_entry
.
camr_new_codebook_entry(
Variable_name = "",
Category = "",
Data_type = "",
Subcategory = "",
Description = "",
Values_and_labels = "",
Inventory = "",
Units_of_measurement = "",
Descriptive_summary = "",
Codes_for_missing_data = "",
Deidentified = "FALSE",
Collected_over = "",
Created_from = "",
Data_quality_checks = "",
Notes = ""
)
Variable_name |
A character string, the column name for the variable of interest. |
Category |
The label associated with the 3-letter abbreviation for the variable's category (see camr_column_abbreviations). |
Data_type |
The label associated with the 3-letter abbreviation for the variable's data type (see camr_column_abbreviations). |
Subcategory |
The label associated with the custom abbreviation for the variable's subcategory (see camr_column_abbreviations). |
Description |
A character string, a brief human-readable description of what the variable is. |
Values_and_labels |
A named list of two vectors,
(1) |
Inventory |
A named list of two vectors,
(1) |
Units_of_measurement |
A character string, the units of measurement for the variable. |
Descriptive_summary |
A named list of two vectors,
(1) |
Codes_for_missing_data |
A character vector, the codes (surrounding by back-ticks) for missing data. |
Deidentified |
Either |
Collected_over |
A named list of two vectors,
(1) |
Created_from |
A character vector, the original REDCap variables from which the variable was created. |
Data_quality_checks |
A character string, notes on any data quality checks relevant to the variable. |
Notes |
A character vector, any additional notes to include in the codebook entry. |
The use of commas should be avoided for codebook entries in order to ensure easy conversion to a .csv file.
A data frame of the additional class
codebook_entry
.
Kevin Potter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.