Hi, Ia m working in discretized data. Here my data:

x <- c(2,1,3, 5), and I want to make (0,1) data  based  on the length of
each component in x.
So the new data should like: y = (0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1). I spent
too much time with
"seq", "rep". Still didn't get it. Any help? Thanks

Ilham

	[[alternative HTML version deleted]]

