add_R {codebook} | R Documentation |
Append R to string, if it doesn't end in R already.
Description
Use this function to conveniently rename reverse-coded variables, so that they end in R.
Usage
add_R(x)
Arguments
x |
a string |
Examples
data('bfi')
bfi %>% dplyr::select(BFIK_open_2,BFIK_agree_2) %>% dplyr::rename_at(1, add_R) %>% head()
[Package codebook version 0.9.2 Index]