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

norpt

A function to take out repeated observations in a vector of data for sorting purposes.


Description

See the example.

Usage

norpt(alist = c(1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5))

Arguments

alist

Value

A vector excluding repeated values with trailing NA's to fill the vector to original length.

Author(s)

Stephen Tueller

References

Tueller, S. J., Van Dorn, R. A., & Bobashev, G. V. (2016). Visualization of categorical longitudinal and times series data (Report No. MR-0033-1602). Research Triangle Park, NC: RTI Press. http://www.rti.org/publication/visualization-categorical-longitudinal-and-times-series-data

See Also

igrpt input to makePatterns

Examples

(alist = c(1,2,2,3,3,3,4,4,4,4,5))
norpt(alist)

longCatEDA

Package for Plotting Categorical Longitudinal and Time-Series Data

v0.31
GPL (>= 3)
Authors
Stephen Tueller. Funded by the National Institute on Drug Abuse (NIDA) Award number 1R03DA030850, the National Institute on Alcohol Abuse and Alcoholism (NIAAA) Award Number R03 AA019775, and the National Institute of Justice Award Number 2011-RY-BX-0003.
Initial release
2017-03-28

We don't support your browser anymore

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