compareNumericVectors: Compare two numeric vectors for greatness

Description Usage Arguments Details Value

View source: R/compareNumericVectors.R

Description

In this function a numeric vector supersedes (comes after) another numeric vector if the left-most differeing number between the two vectors is higher in value.

Usage

1

Arguments

lst

List of length 2 containing the vectors to be compared. Vectors must be of the same length.

Details

Function starts by comparing the first element from each sequence. If they are equal, it goes on to the next element, and so on, until it finds elements that differ. Subsequent elements are not considered (even if they are really big). For example c(0,1,200000) is NOT greater than c(0,3,4)

Value

1 if first element is greater, 2 if second element is greater.


msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.