sds_to_factor: Convert SDS numeric labels to answer option factors

View source: R/sds_to_factor.R

sds_to_factorR Documentation

Convert SDS numeric labels to answer option factors

Description

Convert SDS numeric labels to answer option factors

Usage

sds_to_factor(data)

Arguments

data

A CCMH data file with SDS variables

Value

data with all present SDS variables converted to factors

Examples

sds_to_factor(data.frame(SDS_01 = c(3, 2, 4, 1), SDS_02 = c(4, 3, 2, 1)))


CCMH-PSU/CCMHr documentation built on Jan. 31, 2024, 1:08 a.m.