Learn R Programming

orddom (version 3.1)

return1colmatrix: Convert vectors, data frames, lists, or arrays to 1-column matrix for use in orddom

Description

Converts vectors, data frames, lists, and arrays to 1-column matrix with optional column name and sorting option for use in various orddom functions

Usage

return1colmatrix(x,grp.name="",sortx=FALSE)

Arguments

x
Vector, data frame, list or array with $n_x$ values and an optional header or name
grp.name
A name or column title for x may be assigned. By default, the variable name is returned as var(x).
sortx
If argument is set to TRUE, the function will return a matrix with sorted scores.

Value

See Also

orddom