A dataset is converted to a data matrix. A single data item (i.e. a simple vector) is converted to a one-row data matrix.
a vector, matrix or dataframe
an optional second vector, matrix or data frame having the intended number of rows.
A data matrix containing the same data as W. If W is a vector it is
interpreded as a single row. If
B is given and
length(dim(B))!= 2 and
W is a vector,
W is repeated
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.