Datos faltantes en blanco por NA.
Examples
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
A <- data.frame(x=c(1,2,3,4),y=c(1,2,3,4), z=c(1,"N/A",3,4))
A %>% mutate_each(funs(vacio.as.NA))
#> Warning: `funs()` was deprecated in dplyr 0.8.0.
#> ℹ Please use a list of either functions or lambdas:
#>
#> # Simple named list: list(mean = mean, median = median)
#>
#> # Auto named with `tibble::lst()`: tibble::lst(mean, median)
#>
#> # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
#> Warning: `mutate_each_()` was deprecated in dplyr 0.7.0.
#> ℹ Please use `across()` instead.
#> ℹ The deprecated feature was likely used in the dplyr package.
#> Please report the issue at <https://github.com/tidyverse/dplyr/issues>.
#> x y z
#> 1 1 1 1
#> 2 2 2 N/A
#> 3 3 3 3
#> 4 4 4 4