A function to take out repeated observations in a vector of data for sorting purposes.
See the example.
norpt(alist = c(1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5))
alist |
A vector excluding repeated values with trailing NA
's to fill the vector to original length.
Stephen Tueller
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
igrpt
input to makePatterns
(alist = c(1,2,2,3,3,3,4,4,4,4,5)) norpt(alist)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.