Closed rubenarslan closed 7 years ago
If numeric variables have missing data codes different from NA
you can specify them using cont.na
parameter of syn()
function, e.g. for your last synthesis
syn(iris2, cont.na = list(Sepal.Length = NaN, Petal.Length = NaN))
or
syn(iris2, cont.na = list(Sepal.Length = c(NA, NaN), Petal.Length = c(NA, NaN)))
if NA
code is also present.
We might consider automatic treatment of NaN
values at a later stage.
Hi. I've encountered a problem in
remove.lindep.syn
when my data has values of NaN. Maybe the package could warn about these kinds of values, as they're often produced inadvertently.In my case I could get rid of them easily using
diary = diary %>% mutate_all(funs(ifelse(!is.nan(.),., NA)))
.