Skip to contents

dim.x3p expands the generic dim method for x3p objects and returns (mainly) the dimensions of the surface matrix.

Usage

# S3 method for x3p
dim(x)

Arguments

x

an x3p object

Value

a vector of length three. The first two integers contain width and height of the surface scan, the third dimension is either 1 or 2, depending on whether there is a mask (2) or not (1).

Examples

logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
dim(logo)
#> [1] 741 419   1