dear All:
I have a following problem:
A=c(0,24,3,4,5,0,2,6,7,0,25,5,7,8)
I want combine A(add new column) with the following dataset (1,1,1,1,1,2,2,2,2,3,3,3,3,3) which need to be generated based on A.
How to generate this column BASED ON A?
I appreciate!