compare: Choose Which Of Two Options Is More Important

Description Usage Arguments Examples

Description

To be used within the quickSort() function from package rje Output is either -1 or 1, similar output to greaterThan() from rje

Usage

1
compare(choice1, choice2)

Arguments

choice1

The first item, a character

choice2

The second item, a character

Examples

1
2
3
choice1 <- "Fix the roof"
choice2 <- "Clean the living room"
compare(choice1, choice2)

ayormark/decider documentation built on Feb. 8, 2020, 1:12 a.m.