camr_pull_codebook_entry | R Documentation |
Function to extract a codebook entry for a specified variable, or indicate all variables in a data frame that have codebook entries.
camr_pull_codebook_entry(x = NULL, variable = "")
camr_puce(...)
x |
Either (a) a data frame or (b) a column in a data frame. |
variable |
If |
Either (a) the data frame of additional
class codebook_entry
for the specified
variable, or (b) a logical vector equal to
TRUE
for columns with codebook entries.
Kevin Potter
data( "example_CAM_data_set" )
dtf <- example_CAM_data_set[,1:2]
# Add codebook entry to data frame
dtf <- dtf |>
camr_add_codebook_entry(
IDS.INT.Screening,
description = "Identifier assigned at screening session"
)
# Identify columns with and without codebook entries
camr_pull_codebook_entry( dtf )
# Extract codebook entry
dtf |> camr_pull_codebook_entry( IDS.INT.Screening )
# Alternative approach
camr_pull_codebook_entry( dtf$IDS.INT.Screening )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.