x3p_transpose: Transpose an x3p object

View source: R/x3p_transpose.R

x3p_transposeR Documentation

Transpose an x3p object

Description

Transpose the surface matrix of an x3p object. Also adjust meta information.

Usage

x3p_transpose(x3p)

transpose_x3p(x3p)

Arguments

x3p

x3p object

Examples

logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
dim(logo$surface.matrix)
## Not run: 
x3p_image(logo)

## End(Not run)
#  transpose the image
logotp <- x3p_transpose(logo)
dim(logotp$surface.matrix)
## Not run: 
x3p_image(logotp)

## End(Not run)

x3ptools documentation built on May 29, 2024, 10:33 a.m.