narrow_passes: Identify narrow passes

Description Usage Arguments Value See Also Examples

Description

Adds a column called cydr_NarrowPassError to a dataframe to identify observations associated with narrow passes.

Will identify all observations within narrow passes as erroneous. A pass is deemed narrow if it has an average yield less than 1-diff times that of either its neighbours.

Usage

1
narrow_passes(data, remove=FALSE, passColumn=NULL, diff=0.15)

Arguments

data

a dataframe standardized and outputted from AgLeader.

remove

a boolean. Defaults to FALSE. Indicates whether to remove identified errors.

passColumn

a string or NULL. Defaults to NULL. Indicates what column specifies an observation's pass number. If NULL the built-in helper function number_passes() will be used to assign pass numbers to each observation.

diff

a numeric value between 0 and 1. Defaults to 0.15. Determines the allowable relative difference between neighbouring passes.

Value

A dataframe with an added column called cydr_NarrowPassError. This column will be set to TRUE if it meets the criteria for an erroneous observation.

See Also

Other core functions: pass_end_turns, residual_outliers, speed

Examples

1
2
3
narrow_passes(data)
narrow_passes(data, remove=TRUE, diff=0.25) # Allows differences of up to 25%
narrow_passes(data, passColumn="Pass_Num") # Will use Pass_Num to number passes as th

jillianderson8/cydr documentation built on May 19, 2019, 10:31 a.m.