getprop: getprop extract proportion of values between lim1 and lim2

View source: R/cMSY_funs.R

getpropR Documentation

getprop extract proportion of values between lim1 and lim2

Description

getprop extracts the proportion of values in invect either below lim1, between lim1 and lim2, or above lim2. If lim2 has the value 0.0 and lim1 > 0 then the proportion below lim2 is extracted. If lim1 = 0.0 and lim2 > 0, then the proportion > lim2 is extracted. If both lim1 and lim2 > 0 then the proportion between the two is extracted.

Usage

getprop(invect, lim1 = 0, lim2 = 0)

Arguments

invect

the collection of values to be subdivided

lim1

the lower limit of values

lim2

the upper limit of values

Value

a scalar containing the proportion of records

Examples

## Not run: 
  x <- 1:100
  getprop(x,20)
  getprop(x,20,50)
  getprop(x,lim2=80)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.