view xlsx2tab.R @ 7:25b2fb62d16a draft

Uploaded
author ylebras
date Tue, 04 Dec 2018 20:22:18 -0500
parents aa529f924b86
children 0dc610053f6d
line wrap: on
line source

#!/usr/bin/env Rscript
#Read Xlsx sheets - return tabular
library(readxl)

args = commandArgs(trailingOnly=TRUE)

newname<-paste(args[1], "xlsx", sep=".")
file.rename(args[1],newname)
sheet<-read_excel(newname,sheet=args[2])
write.table(sheet,"out.tabular",sep="\t",row.names=FALSE)

}