View source: R/HerramientasAutonomas.R
reemplazar.nas | R Documentation |
Cambia los NAs de un dataframe por espacios vacíos
reemplazar.nas(data)
data |
El dataframe |
El dataframe sin NAs
Jose Alejandro Morán Pérez
ejemplo <- iris[1:2, 1:2]
# Sepal.Length Sepal.Width
# 5.1 3.5
# 4.9 3.0
ejemplo[2, 2] <- NA
# Sepal.Length Sepal.Width
# 5.1 3.5
# 4.9 NA
reemplazar.nas(ejemplo) #->
# Sepal.Length Sepal.Width
# 5.1 3.5
# 4.9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.