md.import.table: md.import.table

Description Usage Arguments Examples

Description

Import a table (.csv, or tab seprated values, .tsv file) and write it in markdown format to the report.

Usage

1
2
3
4
5
6
7
8
md.import.table(
  from.file.table,
  title_of_table,
  has.rownames = TRUE,
  has.colnames = TRUE,
  field.sep = "\t",
  to.file = path_of_report
)

Arguments

from.file.table

The *.tsv file to be appended as table at the (current) last line of the report.

title_of_table

Title above the table (as header 4, in the markdown report).

has.rownames

If the first column contains (unique!) rownames.

has.colnames

If the first line of the file contains the header, or the column names.

field.sep

Field separator in table file. Tab's by default.

to.file

The report file. Defined as "path_of_report" by default, which is set by the "setup_MarkdownReports" function.

Examples

1
2
x = matrix(1:9,3); utils::write.table(x, sep = "\t", file = "~/x.tsv");
md.import.table("~/x.tsv")

vertesy/MarkdownReportsDev documentation built on Nov. 15, 2021, 9:59 a.m.