Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

expand

Expands a frequency vector to a vector


Description

This function expands a frequency vector to a vector.

Usage

expand(F)

Arguments

F

Frequency vector

Details

This function takes a frequency vector and expands it to a longer vector with one entr for each observation. It is reverses the collapse function. A frequency vector has an entry for each position in the population. Each entry states the number of individuals in the population with this position. Here we create a vector with an entry for each individual.

Value

A vector

Author(s)

Didier Ruedin

See Also


agrmt

Calculate Concentration and Dispersion in Ordered Rating Scales

v1.42.4
MIT + file LICENSE
Authors
Didier Ruedin [aut, cre] Clem Aeppli [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.