Why does the image structure show different content




I am using the library ‘pixmap’ to do image analysis in R.My code is:

image <- read.pnm("C:/Users/Dataset/Downloads/image.ppm")

When I execute the following pieces in code,please notice the dissimilarity in the outputs.

Whereas str(image) shows that the image is stored in some sort of matrix,just typing image into the console displays some details about the image.
Why is it like that?Shouldn’t the matrix be shown when I type in image.


that behaviour is governed by how that class is displayed.

it is different for every class

also see