reverse_code: Reverse codes

Description Usage Arguments Details Examples

View source: R/RecodeR.R

Description

This function is to reverse codes in SA question

Usage

1

Arguments

vector

character vector

Details

Note that for the sake of subsequent processing of data, the output of this function is numeric

Examples

1
2
a = c("1", "2", "3", "4", "5", "9", NA)
reverse_code(a) #9  8  7  6  5  1 NA

momo3246/recode documentation built on Sept. 30, 2020, 2:14 p.m.