dat2ddc {svs} | R Documentation |
Transform a Data Frame into a Double-Coded Matrix
Description
A helper function for transforming all columns of a data frame into a double-coded matrix.
Usage
dat2ddc(dat, limits = NULL)
dat2dc(dat, limits = NULL)
Arguments
dat |
A data frame containing only numeric vectors or ordered factors as columns.
|
limits |
A vector, matrix or list specifying the lower and upper limits for the columns in dat . A single vector of length two applies the same limits to all columns. The matrix or list must either have the same number of columns/components as the number of the number of columns in dat or they must have names. The names can be a subset of the column names of dat . In any case, the limits for each column must be a vector of length two, i.e. the matrix must have two rows or each list component should be a vector of length two. If left unspecified (the default), then the minimum and maximum of each column in dat will be taken as (separate) limits.
|
Value
A matrix with doubly-coded columns.
See Also
vec2ddc
.
[Package
svs version 3.1.1
Index]