read_generic: Universal assayr2 function template to read in tables.

Description Usage Arguments Value

View source: R/readers.R

Description

Wrapper around file format specific read-in patterns.

Usage

1
2
read_generic(file, rows = NULL, cols = NULL, col_names = FALSE,
  dropNA = TRUE, snake_names = TRUE, ...)

Arguments

file

character path to file or integer of Box folder ID

rows

integer defining rows to be read. Only used for XLSX files.

cols

integer or character defining colums to be read. Only used for XLSX files.

col_names

logical should the first non-empty row be converted to column names.

dropNA

logical should columns with all NA value be dropped automatically, if TRUE (default) will emit at warning in the console.

snake_names

logical should column names be converted to snake_case

...

Arguments passed on to read.table(), openxlsx::read.xlsx() or boxr::box_read().

Value

A dataframe without factors.


hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.