RWrapper: Wrapper for reading/writing table/csv files

RWrapperR Documentation

Wrapper for reading/writing table/csv files

Description

Wrapper for reading/writing table/csv files into/from a data frame with sensible defaults.

Usage

read_tcsv(
  file,
  type = "tsv",
  header = TRUE,
  quote = "",
  sep = NULL,
  row.names,
  col.names,
  comment.char = "",
  stringsAsFactors = FALSE,
  fileEncoding = "UTF-8",
  ...
)

write_tcsv(
  x,
  file = "tmp",
  type = "tsv",
  append = FALSE,
  quote = FALSE,
  sep = NULL,
  col.names = TRUE,
  row.names = FALSE,
  fileEncoding = "UTF-8",
  ...
)

Arguments

file

file's full name to read in or write to

type

file type, either "tsv" or "csv"

...

see more at utils::read.table() and utils::write.table()

x

typically a data frame or tibble

Author(s)

Yujie Liu


liuyujie0136/tinyfuncr documentation built on Dec. 13, 2024, 8:49 a.m.