Learn R Programming

cnmlcd (version 1.2-0)

x.weight: Compute Weights of Distinct Observed Values

Description

Finds frequencies of unique observed values.

Usage

x.weight(x)

Arguments

x

observations for which frequencies (or weights) of unique values are to be found.

Value

x

vector of distinct and sorted observations.

w

vector of observation weights.

Examples

Run this code
# NOT RUN {
x.weight(c(5:1,1,3))
# }

Run the code above in your browser using DataLab