checkNotDigitInDataframe: Check if data are only digits

Description Usage Arguments Value Examples

Description

Check if the input data.frale are only composed of digits

Usage

1
checkNotDigitInDataframe(data, returnError = FALSE, excelFormat = TRUE)

Arguments

data

a data.frame containing the data to check

returnError

boolean. If TRUE, return a data.frame with the coordinate of the cell

excelFormat

a boolean vector of length one. If TRUE, data.frame containing position of none digit cell is in excel format. Default to TRUE.

Value

TRUE if the data.frame only contain digit, else return a data.frame with the coordinate of the cell containing some wrond format data in excel style. FALSE by default.

Examples

1
2
3
4
data(mtcars)
checkNotDigitInDataframe(data = mtcars, returnError = FALSE)
mtcars$NOT_DIGIT <- rep("A", nrow(mtcars))
errorPosition <- checkNotDigitInDataframe(data = mtcars, returnError = TRUE)

rgriffier/statsBordeaux documentation built on Aug. 11, 2021, 9:59 a.m.