write.simple.tsv: write.simple.tsv

Description Usage Arguments Examples

Description

Write out a matrix-like R-object WITH ROW- AND COLUMN- NAMES to a file with as tab separated values (.tsv). Your output filename will be either the variable's name. The output file will be located in "OutDir" specified by you at the beginning of the script, or under your current working directory. You can pass the PATH and VARIABLE separately (in order), they will be concatenated to the filename.

Usage

1
2
3
4
5
6
7
8
9
write.simple.tsv(
  input_df,
  separator = "\t",
  extension = "tsv",
  ManualName = "",
  o = FALSE,
  gzip = FALSE,
  ...
)

Arguments

input_df

Your Dataframe with row- and column-names

separator

Field separator, such as "," for csv

extension

e.g.: tsv

ManualName

Specify full filename if you do not want to name it by the variable name.

o

Open the file after saving? FALSE by default

gzip

Compress the file after saving? FALSE by default

...

Pass any other argument to the kollapse() function used for file name.

Examples

1
2
3
YourDataFrameWithRowAndColumnNames = cbind("A" = rnorm(100), "B" = rpois(100, 8))
rownames(YourDataFrameWithRowAndColumnNames) = letters[1:NROW(YourDataFrameWithRowAndColumnNames)]
write.simple.tsv(YourDataFrameWithRowAndColumnNames)

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