read_table_generic: Generic reading function using the readr R package, tailored...

View source: R/util.R

read_table_genericR Documentation

Generic reading function using the readr R package, tailored for reading in genomic data

Description

Generic reading function using the readr R package, tailored for reading in genomic data

Usage

read_table_generic(
  file,
  header = T,
  row.names = F,
  stringsAsFactor = F,
  sep = "\t",
  chrom_col = 1,
  skip = 0
)

Arguments

file

Filename of the file to read in

header

Whether the file contains a header (Default: TRUE)

row.names

Whether the file contains row names (Default: FALSE)

stringsAsFactor

Legacy parameter that is no longer used (Default: FALSE)

sep

Column separator (Default: \t)

chrom_col

The column number that contains chromosome denominations. This column will automatically be cast as a character. Should be counted including the row.names (Default: 1)

skip

The number of rows to skip before reading (Default: 0)

Value

A data frame with contents of the file


Wedge-Oxford/battenberg documentation built on Aug. 4, 2023, 6:27 p.m.