missingValuesCol: missingValuesCol

Description Usage Arguments Value Examples

View source: R/missingValuesCol.R

Description

missingValuesCol takes as input two data.frame objects (dfData1, dfData2), and two integer values (dfColIndex1, dfColIndex2) and returns a data.frame object with the row location and row name of the missing values present in column number dfColIndex1 of dfData1 but not in column number dfColIndex2 of dfData2.

Usage

1
missingValuesCol(dfData1, dfColIndex1, dfData2, dfColIndex2)

Arguments

dfData1

the first data.frame object. Note that this is not a character string but the data.frame object itself. The parameter passed to the function should be without quotes (" ").

dfColIndex1

an integer indicating the column number of dfData1 to be handled. This column is one of the columns to be compared.

dfData2

the second data.frame object. Note that this is not a character string but the data.frame object itself. The parameter passed to the function should be without quotes (" ").

dfColIndex2

an integer indicating the column number of dfData2 to be handled. This column is one of the columns to be compared.

Value

missingValuesCol returns a data.frame object consisting of 2 columns 'placeinTable1' and 'rowName' indicating the row location and row name respectively of the missing values present in column number dfColIndex1 in dfData1 but not in column number dfColIndex2 of codedfData2

Examples

1
2
3
4
employees_short <- employees[c(2,3,5),]
missingValuesCol(employees,4,employees_short,4)
iris_short <- iris[c(50:75),]
missingValuesCol(iris,2,iris_short,2)

lwTools/agriTrf documentation built on March 26, 2020, 12:09 a.m.