Detect suspected erroneous numeric data in user chosen columns
suscat(df, column = NULL, n = 5, num = "percent")
df | A dataframe or matrix like object |
---|---|
column | vector like with names of columns to test |
n | default to 1, integer number or percentage of suspected values to identify |
num | either "number" if n should be read as a number of rows or 'percentage' if a percentage of total rows |
list of named vectors containing row numbers per column
#> $Sepal.Width #> [1] 15 16 33 34 61 63 69 120 #> #> $Petal.Width #> [1] 101 110 145 #>