view xlsx2tab.R @ 5:5251f7e929a6 draft

Uploaded
author ylebras
date Tue, 04 Dec 2018 20:01:50 -0500
parents 97c4e2e4f07e
children aa529f924b86
line wrap: on
line source

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

args = commandArgs(trailingOnly=TRUE)

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

}