assess_bottomempty: Feature extraction: percentage of missing values in the...

View source: R/assess_bottomempty.R

assess_bottomemptyR Documentation

Feature extraction: percentage of missing values in the bottom n0% of the scan

Description

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.

Usage

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
assess_bottomempty(fau001_ba_l1) # good scan

heike/DS401 documentation built on Oct. 23, 2022, 1:39 p.m.