unfactor: Title

Description Usage Arguments Value Examples

View source: R/freq.R

Description

Title

Usage

1

Arguments

xvar

The variable to unfactor

levels

The desired levels as numeric values given in the order where label appear

update

if TRUE, the default, the data.frame is automaticaly updated with the new numeric variable

Value

The unfactored variable

Examples

1
2
3
tvar<- c("Yes","No")
tvar <- factor(tvar)
unfactor(tvar)

gdesve/epifield documentation built on Jan. 23, 2022, 10:03 a.m.