validateArguments
validateArguments(matchKey = NA, roundDigits = NA, coerceCols = TRUE, maxMismatch = NA)
A character or character vector of column names to match on
Integer. If NA, numerics are not rounded before comparison. If roundDigits is specified, numerics are rounded to roundDigits decimal places using round.
roundDigits
Boolean - do we coerce columns names?
Cap for number of mismatches
Nothing. Errors if any parameters are invalid.
# NOT RUN { validateArguments('plantName',1E-8,T,1000) # } # NOT RUN { validateArguments('colorName',1E-9,F,10) # }
Run the code above in your browser using DataLab