rztpois {nhppp} | R Documentation |
Zero-truncated Poisson random samples (basic R)
Description
Sample zero-truncated Poisson random samples (basic R)
Usage
rztpois(n, lambda)
Arguments
n |
Integer, number of samples |
lambda |
Positive number, the mean of the original (untruncated) Poisson distribution |
Value
a vector of non zero counts of size n
Examples
rztpois(10, 1)
rztpois(10, 1:10)
[Package nhppp version 1.0.2 Index]