[R] Matrix to Vector
Hello, I have a matrix of values that I want to convert to a vector, but remove certain entries in the matrix first, i.e. in the vector I want every value in the matrix that is greater than 1000. I would also like to find out how many values are excluded in the transition from matrix to vector. Could someone tell me how this can be done? Thank you in advance Arun Horne __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] Matrix to Vector
A matrix is a vector with a dim attribute. The following should do what I understand of you to be asking: sel - (Mat1000) Vec - Mat[sel] n.excl - length(Mat)-length(Vec) hope this helps. spencer graves Arun Horne wrote: Hello, I have a matrix of values that I want to convert to a vector, but remove certain entries in the matrix first, i.e. in the vector I want every value in the matrix that is greater than 1000. I would also like to find out how many values are excluded in the transition from matrix to vector. Could someone tell me how this can be done? Thank you in advance Arun Horne __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help