export_as_tsv {rtables} | R Documentation |
Create enriched flat value table with paths
Description
This function creates a flat tabular file of cell values and corresponding paths via path_enriched_df()
. It then
writes that data frame out as a tsv
file.
Usage
export_as_tsv(
tt,
file = NULL,
path_fun = collapse_path,
value_fun = collapse_values
)
import_from_tsv(file)
Arguments
tt |
( |
file |
( |
path_fun |
( |
value_fun |
( |
Details
By default (i.e. when value_func
is not specified, list columns where at least one value has length > 1 are
collapsed to character vectors by collapsing the list element with "|"
.
Value
-
export_as_tsv
returnsNULL
silently. -
import_from_tsv
returns adata.frame
with re-constituted list values.
Note
There is currently no round-trip capability for this type of export. You can read values exported this way back in
via import_from_tsv
but you will receive only the data.frame
version back, NOT a TableTree
.
See Also
path_enriched_df()
for the underlying function that does the work.