add_R: Append R to string, if it doesn't end in R already.

Description Usage Arguments Examples

View source: R/metadata.R

Description

Use this function to conveniently rename reverse-coded variables, so that they end in R.

Usage

1
add_R(x)

Arguments

x

a string

Examples

1
2
data('bfi')
bfi %>% dplyr::select(BFIK_open_2,BFIK_agree_2) %>% dplyr::rename_at(1, add_R) %>% head()

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