Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/distributions.r

View File Source Download File No help file available

Function: constant.linear

Function Description: constant.linear

A model which is constant for xlim. The first parameter is the slope, second the x value of break point, third the lower limit.

Function Arguments:

ArgumentDefault Value
x
param
xcenterNULL

Function Source:

constant.linear=function(x,param,xcenter=NULL)
{
line=drp(parallel.line(0,m=param[1],param[2],param[3])[1,])

y=linear.model(x,line)
y[x
return(y)
}