Skip to contents

A dictionary containing value mappings for various variables, along with their corresponding labels and whether the values are ordered.

Usage

data("dict_recode")

Format

A tibble with 50 rows and 4 variables:

names

character: The variable name.

values

numeric: The numeric value assigned to each label.

labels

character: The label corresponding to each numeric value.

is_ordered

numeric: Indicates whether the variable is ordered. A value of 1 indicates ordered, 0 indicates unordered.

Source

Simulated data for demonstration purposes.

Examples

dta_gtable(dict_recode)
names values labels is_ordered
region 1 Central 0

2 North East

3 South

4 West
age_group 1 20-29 1

2 30-39

3 40-49

4 50-59

5 60-69

6 70+
blood_group 1 A 0

2 B

3 AB

4 O
marital_status 1 Single 0

2 Married

3 Other
education 1 Bachelors 1

2 Masters

3 Doctorate
employed 0 No 0

1 Yes
ses 1 Low 1

2 Middle

3 High
language 1 English 0

2 French

3 Spanish

4 Arabic

5 Mandarin

6 Other
phone 0 None 0

1 Samsung

2 Apple

3 Xiaomi

4 OnePlus

5 Google

6 Other
transport 1 Walking 0

2 Bicycle

3 Car

4 Bus

5 Train
r 0 No 0

1 Yes
python 0 No 0

1 Yes
sas 0 No 0

1 Yes
stata 0 No 0

1 Yes
spss 0 No 0

1 Yes
excel 0 No 0

1 Yes