get_header | R Documentation |
Reading in this way is more robust and able to handle bgz format.
get_header(
path,
colnames_only = TRUE,
nrows = 2L,
nThread = 1L,
verbose = TRUE
)
path |
Path to local file or remote URL. |
colnames_only |
Whether to return only column names
(default: |
nrows |
The maximum number of rows to read. Unlike |
nThread |
The number of threads to use. Experiment to see what works best for your data on your hardware. |
verbose |
Print messages. |
tmp <- tempfile(fileext = ".tsv.gz")
data.table::fwrite(echodata::BST1, file = tmp, sep = "\t")
header <- echodata::get_header(path=tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.