Suppose I have a matrix of classes (in this case red, green and blue) that
looks like this

image(matrix(runif(10000), 100, 100), col = c("red", "blue", "green"))

The classes are not contiguous.

Suppose I now want to separate non-contiguous "red" classes into each of
their own classes.

Is there a way to search the matrix to make non-contiguous "red" classes
their own classes (like red1, red2, red3)?

Thanks

Matt



-- 
Matthew J. Oliver
Assistant Professor
School of Marine Science and Policy
College of Earth, Ocean and Environment
University of Delaware
700 Pilottown Rd.
Lewes, DE, 19958
302-645-4079
http://www.ocean.udel.edu/people/profile.aspx?moliver

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to