Learn R Programming

scanstatistics (version 0.1.0)

generate_poisson_counts: Randomly generate and add Poisson counts to a table.

Description

This function randomly generates counts from a Poisson distribution according to the parameters on each row of the input data.table, and adds the counts to a new column count.

Usage

generate_poisson_counts(table)

Arguments

table

A data.table with at least the column mu, corresponding to the parameter lambda in rpois.