codebook_component_single_item: Codebook component for single items

Description Usage Arguments Examples

View source: R/codebook.R

Description

Codebook component for single items

Usage

1
2
3
4
5
codebook_component_single_item(
  item,
  item_name = deparse(substitute(item)),
  indent = "##"
)

Arguments

item

an item with attributes set

item_name

the item name

indent

add # to this to make the headings in the components lower-level. defaults to beginning at h2

Examples

1
2
3
4
5
## Not run: 
data("bfi")
codebook_component_single_item(bfi$BFIK_open_1, "BFIK_open_1")

## End(Not run)

Example output

dev.new(): using pdf(file="Rplots1.pdf")
dev.new(): using pdf(file="Rplots2.pdf")
dev.new(): using pdf(file="Rplots3.pdf")
dev.new(): using pdf(file="Rplots4.pdf")
dev.new(): using pdf(file="Rplots5.pdf")
dev.new(): using pdf(file="Rplots6.pdf")
No viewer found, probably documenting or testing



#### BFIK_open_1 {#BFIK_open_1 .tabset}

__Ich bin vielseitig interessiert.__

##### Distribution {#BFIK_open_1_distribution}

figure/BFIK_open_1_distribution-1.pdf

0 missing values.

##### Summary statistics {#BFIK_open_1_summary}


|name        |label                                |type          |type_options |data_type      |optional |item_order | n_missing| complete_rate|min |median |max |     mean|        sd| n_value_labels|hist     |
|:-----------|:------------------------------------|:-------------|:------------|:--------------|:--------|:----------|---------:|-------------:|:---|:------|:---|--------:|---------:|--------------:|:--------|
|BFIK_open_1 |__Ich bin vielseitig interessiert.__ |rating_button |5            |haven_labelled |0        |8          |         0|             1|2   |5      |5   | 4.392857| 0.8317445|              6|▁▁▂▁▁▃▁▇ |






##### Item {#BFIK_open_1_item}



Table: Item options

|type          |type_options |name        |label                                | optional| item_order|
|:-------------|:------------|:-----------|:------------------------------------|--------:|----------:|
|rating_button |5            |BFIK_open_1 |__Ich bin vielseitig interessiert.__ |        0|          8|




##### Value labels {#BFIK_open_1_labels}


Table: Response choices

|name                                   | value|
|:--------------------------------------|-----:|
|1: Trifft überhaupt nicht zu           |     1|
|2                                      |     2|
|3                                      |     3|
|4                                      |     4|
|5: Trifft voll und ganz zu             |     5|
|Item was never rendered for this user. |    NA|

codebook documentation built on July 1, 2020, 10:28 p.m.