gwTraspose: Matrix Transpose

View source: R/gwTraspose.R

gwTrasposeR Documentation

Matrix Transpose

Description

Given a matrix or data.frame 'm', 'gwTraspose' returns the transpose of 'm'.

Usage

gwTraspose(m, byrow = FALSE)

Arguments

m

a matrix or data.frame, typically.

byrow

a boolean. Ordering by colums 'default=FALSE'. 'TRUE' order by rows

Value

A matrix, with dim and dimnames constructed appropriately from those of 'm', and other attributes except names copied across.

Examples

# matrix
a <- matrix(1:28, 4, 7)
gwTraspose(a, byrow=TRUE)


patauchi/biogeoTools documentation built on April 25, 2022, 6:53 p.m.