Learn R Programming

longCatEDA (version 0.13)

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.

References

Tueller, S. J., Van Dorn, R. A., and Bobashev, G. V. (2013). Visualization of Categorical Longitudinal and Times Series Data. Manuscript Under Review.

See Also

igrpt input to makePatterns

Examples

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

Run the code above in your browser using DataLab