NAto0: Recoding of NAs to 0 or "NA"

Description Usage Arguments Details Value Examples

View source: R/syn2.R

Description

Recoding of NAs to 0 or "NA"

Usage

1
NAto0(tableA)

Arguments

tableA

a dataframe

Details

for synthetisation to run, missing values are treated as a special factor level for factor variables, or as 0 for continuous variables. To avoid issues, for continuous variables, a missing indicator is also created.

Value

a dataframe

Examples

1
2
3
toto<-cars
toto$speed[sample(nrow(cars),3)]<-NA
NAto0(toto)

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.