powered by
idply(im, axis, fun, ...)
idply(boats,"c",mean) #mean luminance per colour channel
Run the code above in your browser using DataLab