Learn R Programming

ordinalTables (version 1.0.0.3)

expand: Converts weighted (x, w) pairs into unweighted data by replicating x[i] w[i] times

Description

Takes a set of (value, weight) pairs and converts into unweighted vector (w[i]) for each i Weights are assumed to be integers

Usage

expand(x, w)

Value

new unweighted vector of scores

Arguments

x

Numeric vector of scores.

w

Numeric vector of weights. These are assumed to be integers