Last data update: 2014.03.03

R: Proportion in Range
mono.rangeR Documentation

Proportion in Range

Description

This function reports the proportion of entries that fall inside of the prespecified range.

Usage

mono.range(data, data.r, tol, xr.col, x.col, y.col)

Arguments

data

a data.frame or matrix of measurement data

data.r

range for y values; must have three columns: 1 - must match values in x.col, 2 - lower range values, 3 - upper range values

tol

tolerance; how much outside of the range (data.r) is acceptable; same units as data in y.col

xr.col

column where x values, or time variable is stored in data.r

x.col

column where x values, or time variable is stored in data

y.col

column where y values, or measurements are stored in data

Value

Returns the proportion of y values that fall inside the prespecified range

Author(s)

Michele Josey mjosey@nccu.edu Melyssa Minto mminto@nccu.edu

Examples

data(simulated_data)
data(data.r)

mono.range(simulated_data, data.r, tol=4, xr.col=1 ,x.col=2, y.col=3)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MonoInc)
Loading required package: compare

Attaching package: 'compare'

The following object is masked from 'package:base':

    isTRUE

Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MonoInc/mono.range.Rd_%03d_medium.png", width=480, height=480)
> ### Name: mono.range
> ### Title: Proportion in Range
> ### Aliases: mono.range
> ### Keywords: range
> 
> ### ** Examples
> 
> data(simulated_data)
> data(data.r)
> 
> mono.range(simulated_data, data.r, tol=4, xr.col=1 ,x.col=2, y.col=3)
[1] 0.6774194
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>