R/csv.R

Defines functions qread.csv qwrite.csv

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

#' @method qwrite csv
#' @export
qwrite.csv <- function(x, file, type, quote=TRUE, ...) {
	write.table(x, file,
		quote=quote, sep=",", 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.