[R] How to read in .jpeg files

Bill Simpson William.Simpson at drdc-rddc.gc.ca
Fri Feb 4 15:33:32 CET 2005


> for(i in 1:dims[1]) x[i,]<-rev(x[i,]) #flip the image vertically

Courtesy of Rolf Turner, here is  a much better way to flip vertically:

x <- x[,ncol(x):1] 

Bill




More information about the R-help mailing list