read.simple.tsv: read.simple.tsv

View source: R/ReadWriter.R

read.simple.tsvR Documentation

read.simple.tsv

Description

Read in a file with excel style data: rownames in col1, headers SHIFTED. The header should start with a TAB / First column name should be empty.

Usage

read.simple.tsv(
  ...,
  sep_ = "\t",
  colnames = TRUE,
  wRownames = TRUE,
  coltypes = NULL,
  NaReplace = TRUE,
  asTibble = FALSE
)

Arguments

...

Multiple simple variables to parse.

sep_

Separator character, Default: ' '

colnames

Are there column names?, Default: TRUE

wRownames

With rownames?, Default: TRUE

coltypes

What type of variables are in columns? Auto-guessing can be very slow., Default: NULL

NaReplace

Replace NA-values?, Default: TRUE

asTibble

Load as tibble or dataframe?, Default: FALSE (=load as df)

See Also

read_delim na.replace

Examples

## Not run: 
if (interactive()) {
  # read.simple.tsv("path/to/my.file")
}

## End(Not run)

vertesy/ReadWriter documentation built on Nov. 24, 2024, 10:40 p.m.