Description Usage Arguments Details Value Author(s) References See Also Examples
For compact storage, encode
combines a set of levels and
labels (codes and decodes) into a simple string. The default method
converts its argument to character. The list method operates element-wise,
expecting and equal number of label elements, each of which have the same
length as the corresponding element of x.
1 2 3 4 5 6 |
x |
typically character |
labels |
typically character |
sep |
character |
... |
ignored |
An 'encoding' must be at least 5 characters long, beginning and ending with two
instances of sep
. Specified levels are likewise separated by double separators.
If a label (decode) is available for a level, it follows the corresponding level: the
two are separated by a single instance of sep
. Separators may be mixed
within an encoded vector, but not within an element. --0-male--1-female--
indicates
that the value 0 represents the concept "male" and the value 1 represents "female".
character
Tim Bergsma
http://metrumrg.googlecode.com
as.spec
specfile
specification
codes
%matches%
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.