TITLE(encode @@ general encoding for classification)
USAGE(
encode(x, code)
)
ARGUMENTS(
ARG(x @@ vector of class labels  )
ARG(code @@ matrix with each row containing the code for one class)
)
DESCRIPTION(
Encodes the vector @LANG(x) using one-in-n coding.
)
VALUE(
Matrix replacing each element of @LANG(x) by the corresponding row of
@LANG(code).
)
SEEALSO(one.in.n)

