Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

F8-sq.array

Produce Square Array or Square Matrix


Description

Convert input data to a square array or a square matrix.

Usage

sq.array(x)
sq.matrix(x)

Arguments

x

data object. If x is a vector, length of x should be a square number. Otherwise, the second dimension of x should be a square number.

Value

A square matrix with elements coming from x.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

Examples

sq.matrix(1:25)
sq.array(matrix(1:50, ,2))

muStat

Prentice Rank Sum Test and McNemar Test

v1.7.0
GPL (>= 2)
Authors
Knut M. Wittkowski <kmw@rockefeller.edu> and Tingting Song <ttsong@gmail.com>
Initial release
2010-09-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.