expand: Expand Data by Weight

View source: R/expand.R

expandR Documentation

Expand Data by Weight

Description

Expand Data by Weight

Usage

expand(x, weight)

Arguments

x

dataframe or matrix

weight

weight column names or index

Value

expanded data

Examples

df=data.frame(v=c(1,2,3),
               x=c(7,8,9),
               n=c(2,3,4))
expand(x = df,weight = 3)
expand(x = df,weight = 'n')

do documentation built on Sept. 12, 2024, 6:27 a.m.