Missing values to the bottom right of a scan are expected and may not be that impactful. However, if there are missing values consistently along the bottom of a scan, it indicates a bad scan, probably due to poor lighting. This function returns the percentage of the bottom n0% of values that are missing. The cutoff for what is considered "bottom" can be adjusted.

assess_bottomempty(x3p, n_cutoff = 0.2)

Arguments

x3p

scan in x3p format

n_cutoff

limit for where the 'bottom' ends. In the form of a decimal such as '.n', defaults to 0.3.

Value

percentage of missing values in the bottom n0%.

Examples

data(fau277_bb_l2)
assess_bottomempty(fau277_bb_l2) # bad scan
#> [1] 95.20528
assess_bottomempty(fau001_ba_l1) # good scan
#> [1] 22.90831