determine_uds: Determine the pattern between two intervals

View source: R/patternFuns.R

determine_udsR Documentation

Determine the pattern between two intervals

Description

This function checks if the two input intervals oferlap and outputs the corresponding pattern (up, down, or straight) based on that.

Usage

determine_uds(min1, max1, min2, max2)

Arguments

min1, max1, min2, max2

the endpoints of the two intervals

Value

A single character (one of "U", "D", "S") representing the pattern

Examples

determine_uds(10, 20, 15, 25) # overlap
determine_uds(10, 20, 25, 35) # no overlap

bulkAnalyseR documentation built on Dec. 28, 2022, 2:04 a.m.