unkount: Uncounting data frame using a weights

View source: R/Utils.R

unkountR Documentation

Uncounting data frame using a weights

Description

Similar to uncount but using base R only

Usage

unkount(x, weight)

Arguments

x

a data frame

weight

column in x with number of replicates, no need to "quote"

Examples

x <- data.frame(a = c(1, 2), b = c(3, 4))
unkount(x, b)

kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.