camr_display_codebook_entry: Display Codebook Entry

View source: R/R07-Codebook.R

camr_display_codebook_entryR Documentation

Display Codebook Entry

Description

Print details from a codebook entry to the console window.

Usage

camr_display_codebook_entry(x, variable = "")

camr_dice(...)

Arguments

x

Either (a) a data frame or (b) a variable with a codebook_entry attribute.

variable

If x is a data frame, the column in the data frame from which the codebook entry should be extracted and displayed.

Value

Output to the console window detailing the codebook entry.

Author(s)

Kevin Potter

Examples

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"
)

# Display entry
dtf |> camr_display_codebook_entry( IDS.INT.Screening )

# Alternative approach
camr_display_codebook_entry( dtf$IDS.INT.Screening )


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.