fix_NA: fix_NA

View source: R/fix_functions.R

fix_NAR Documentation

fix_NA

Description

Fixes miscoded missing values

Usage

fix_NA(
  x,
  na.strings = c("^$", "^ $", "^\\?$", "^-$", "^\\.$", "^NaN$", "^NULL$", "^N/A$"),
  track = TRUE,
  parallel = TRUE
)

Arguments

x

A data.frame

na.strings

Strings to be considered NA

track

Track changes?

parallel

Should the computations be performed in parallel? Set up strategy first with future::plan()

Examples

mydata <- data.frame(prueba = c("", NA, "A", 4, " ", "?", "-", "+"),
casa = c("", 1, 2, 3, 4, " ", 6, 7))
fix_NA(mydata)

clickR documentation built on Aug. 8, 2023, 1:11 a.m.