Skip to contents

head.x3p expands the generic head method for x3p objects. It gives a summary of the most relevant 3p meta information and returns the object invisibly.

Usage

# S3 method for class 'x3p'
head(x, n = 6L, ...)

Arguments

x

x3p object

n

number of rows/columns of the matrix

...

extra parameters passed to head.matrix()

Examples

logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
head(logo)
#> size (width x height): 741 x 419 in pixel 
#> resolution: 6.4500e-07 x 6.4500e-07 
#>       [,1]  [,2]  [,3]  [,4]  [,5]  [,6]
#> [1,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07
#> [2,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07
#> [3,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07
#> [4,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07
#> [5,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07
#> [6,] 4e-07 4e-07 4e-07 4e-07 4e-07 4e-07