dim.x3p: Dimension of an x3p object

View source: R/generics.R

dim.x3pR Documentation

Dimension of an x3p object

Description

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

Usage

## S3 method for class '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)

heike/x3ptools documentation built on Oct. 12, 2024, 2:33 p.m.