R/tsv.R

Defines functions qread.tsv qwrite.tsv

#' @method qread tsv
#' @export
qread.tsv <- function(file, type, check.names=FALSE, quote="\"", ...) {
	read.table(file, header=TRUE, sep="\t", quote=quote, check.names=check.names, ...)
}

#' @method qwrite tsv
#' @export
qwrite.tsv <- function(x, file, type, quote=FALSE, ...) {
	write.table(x, file,
		quote=quote, sep="\t", row.names=FALSE, col.names=TRUE, ...)
}

Try the io package in your browser

Any scripts or data that you put into this service are public.

io documentation built on Dec. 18, 2019, 1:39 a.m.