encode | R Documentation |
diyar
Encode and decode character and numeric values.
encode(x, ...)
decode(x, ...)
## Default S3 method:
encode(x, ...)
## S3 method for class 'd_label'
encode(x, ...)
## Default S3 method:
decode(x, ...)
## S3 method for class 'd_label'
decode(x, ...)
## S3 method for class 'd_label'
rep(x, ...)
## S3 method for class 'd_label'
x[i, ..., drop = TRUE]
## S3 method for class 'd_label'
x[[i, ..., drop = TRUE]]
x |
|
... |
Other arguments. |
i |
i |
drop |
drop |
To minimise memory usage, most components of pid
, epid
and pane
are integer
objects with labels.
encode()
and decode()
translates these codes and labels as required.
d_label
; atomic
cds <- encode(rep(LETTERS[1:5], 3))
cds
nms <- decode(cds)
nms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.