speed: Identify outlying speeds

Description Usage Arguments Value See Also Examples

Description

Adds a column called cydr_SpeedError to a dataframe to identify observations associated with outlying speeds.

Will identify all observations with speeds greater than sd standard deviations from the mean. If remove is TRUE all erroneous observations will be removed from the dataframe.

Usage

1
speed(data, remove=FALSE, type="both", sd=2)

Arguments

data

a dataframe standardized and outputted from AgLeader.

remove

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

type

one of "high", "low", or "both" to determine which types of data to identify as erroneous. "high" will identify fast speeds, "low" will identify slow speeds, and "both" will identify data associated with either fast or slow speeds.

sd

a number >= 0. Defaults to 2. Used as the standard deviation threshold for error identification.

Value

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

If remove = TRUE all observations cydr identifies as erroneous are removed from the returned dataframe.

See Also

Other core functions: narrow_passes, pass_end_turns, residual_outliers

Examples

1
2
3
4
speed(data)
speed(data, type="both")
speed(data, FALSE, type="low")
speed(data, TRUE, type="high")

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