Skip to contents

S3 method for quantities objects (see t).

Usage

# S3 method for quantities
t(x)

Arguments

x

a matrix or data frame, typically.

Examples

a <- matrix(1:30, 5, 6)
quantities(a) <- list("m/s", 1:30)
t(a)
#> Units: [m/s]
#> Errors:  1  6 11 16 21 ...
#>      [,1] [,2] [,3] [,4] [,5]
#> [1,]    1    2    3    4    5
#> [2,]    6    7    8    9   10
#> [3,]   11   12   13   14   15
#> [4,]   16   17   18   19   20
#> [5,]   21   22   23   24   25
#> [6,]   26   27   28   29   30