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: rpois.max

Function Description: rpois.max

Random draws on dpois.max

Function Arguments:

ArgumentDefault Value
N
lambda
maxx

Function Source:

rpois.max=function(N,lambda,maxx)
{
result=rpois(N,lambda=lambda)
result[result>maxx]=maxx

return(result)
}