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

patternVector

Creates pattern vector


Description

Helper function to create a pattern vector from a frequency vector.

Usage

patternVector(V)

Arguments

V

A frequency vector

Details

This is a helper function to create a pattern vector from a frequency vector. A pattern vector reduced all values greater or equal to 1 to 1, and values of 0 remain 0. A frequency vector (0,0,18,59,0,34,2) is turned into a pattern vector (0,0,1,1,0,1,1).

Value

The function returns a pattern 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.