I am working in R. I have a vector A. It contains values which are integers between 0-10. I want a matrix with 10-X 0s followed by X 1s where X is the corresponding value from vector A. I am working in R. I have a vector A. It contai
I am working in R. I have a vector A. It contains values which are integers between 0-10. I want a matrix with 10-X 0s followed by X 1s where X is the corresponding value from vector A. I am working in R. I have a vector A. It contai