The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This vignette introduces how to create multi level headers.
Sepal.Length | Sepal.Width | Petal.Length | Petal.Width | Species |
---|---|---|---|---|
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
The split_header()
function generates multi-level
headers by separating original headers (row names) by delimiters.
Sepal | Sepal | Petal | Petal | Species |
---|---|---|---|---|
Length | Width | Length | Width | |
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
The sep
argument defines delimiters by regular
expression. The default delimiters are .
and
_
. Let’s see what happens when seop = "e"
S | S | P | P | Sp |
---|---|---|---|---|
pal.L | pal.Width | tal.L | tal.Width | ci |
ngth | ngth | s | ||
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
The span_header()
function also generates multi-level
headers. Unlike the split_header()
function, the
span_header()
function merges adjacent headers if they have
same values.
Sepal | Petal | Species | ||
---|---|---|---|---|
Length | Width | Length | Width | |
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.