Description Usage Arguments Examples
View source: R/Encontrar_candidatos_dataset_v1.R
NA_VALUES
Asks for a dataframe and returns a table of how many missing values are in each collum
1 |
df |
A dataframe with the missing values you wish to fill |
1 2 3 4 5 6 7 8 9 10 11 | #This function is used to detect how many NA values are in a dataframe
# the use is pretty much always the same
#Lets consider the dataset iris
i=iris
print(NA_VALUES(i) )
#Since it has no missing values it shows none, now lets insert some NA_VALUES there
i[sample(1:nrow(i),0.3*nrow(i)),1]=NA
i[sample(1:nrow(i),0.2*nrow(i)),2]=NA
i[sample(1:nrow(i),0.5*nrow(i)),3]=NA
print(NA_VALUES(i))
#For every dataframe the user just uses this
|
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
0 0 0 0 0
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
45 30 75 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.