Skip to contents

as_transform1d() casts to a transform1d() affine transformation matrix

Usage

as_transform1d(x, ...)

# S3 method for class 'transform1d'
as_transform1d(x, ...)

# Default S3 method
as_transform1d(x, ...)

Arguments

x

An object that can be cast to a

...

Further arguments passed to or from other methods

Value

A transform1d() object

Examples

m <- diag(2L)
as_transform1d(m)
#>      [,1] [,2]
#> [1,]    1    0
#> [2,]    0    1
#> attr(,"class")
#> [1] "transform1d" "at_matrix"   "matrix"      "array"