Description Usage Arguments Value Examples
Check out all data set to find missing values. Return a data frame, with the possition of each missing value.
1 | findMissingValues(dataSet)
|
dataSet |
an object of class data frame with a data set. |
an integer(0) when no null values, or a data frame with all null values identified by their positions (i,j)
1 2 3 4 5 6 7 8 9 10 11 | #Example 1
# Getting a data set with missing values
cars <- read.csv("https://dl.dropboxusercontent.com/u/12599702/autos.csv", sep = ";", dec = ",")
missingValues <- findMissingValues(cars) #Find missing values
if (any(missingValues)) { #Validation if missing values exist
missingValues <- missingValues[!duplicated(missingValues[,1]),] #Deleting duplicated rows
print(missingValues) # print all missing values found
cars <- cars[-missingValues[,1],] # deleting all rows that contains a missing values
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.