R/write.vector.R

Defines functions write.vector write.tab

Documented in write.tab write.vector

#' write vectors as single column table
#' (usefull for exporting i.e. protein id's)
#' uses write.table
#' @param x vector to write
#' @param file file to write to
#' @export
#' 
write.vector <- function(x,file){
  utils::write.table(x,file=file, quote=FALSE,row.names = FALSE,sep="\t",col.names = FALSE)  
}
#' write table in tab delimited no quotes no row.names
#' (usefull for exporting i.e. list of foldchanges)
#' uses write.table 
#' TODO : validate if not redundant with other write functions
#' @param x vector to write
#' @param file file to write to
#' @export
#' 
write.tab <- function(x, file){
  utils::write.table(x,file=file, quote=FALSE,row.names = FALSE,sep="\t",col.names = TRUE)  
}

Try the quantable package in your browser

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

quantable documentation built on May 2, 2019, 4:05 p.m.