diff tab2csv.R @ 1:f1b7d0032530 draft default tip

Uploaded
author ylebras
date Tue, 11 Sep 2018 10:37:13 -0400
parents 659820e2aa61
children
line wrap: on
line diff
--- a/tab2csv.R	Wed Aug 08 06:23:04 2018 -0400
+++ b/tab2csv.R	Tue Sep 11 10:37:13 2018 -0400
@@ -6,7 +6,7 @@
 
 if(args[3]=="TRUE"){
     tabular<-read.table(args[1],sep="\t",header=TRUE)
-    write.tale(tabular,"out.csv",sep=args[2],row.names=FALSE)
+    write.table(tabular,"out.csv",sep=args[2],row.names=FALSE)
 }else{
     tabular<-read.table(args[1],sep="\t",header=FALSE)
     write.table(tabular,"out.csv",sep=args[2],col.names=FALSE,row.names=FALSE)