maxLookup: A function for finding y of x

Description Usage Arguments Author(s)

View source: R/maxLookup.R

Description

This functiont takes a two column data frame as input. It computes the max of the second column, and then returns the first corresponding value from the first column

Usage

1
maxLookup(x, right = FALSE)

Arguments

x

an nx2 data frame

right

indicates whether to take the first or last instance of max, if it appears more than once

Author(s)

Richard D. Yentes rdyentes@ncsu.edu


ryentes/rdy-dissertation-tools documentation built on Dec. 5, 2019, 10:23 p.m.