comparison csv2rdata.R @ 3:d98e0124cb31 draft default tip

planemo upload commit ed84801645679d29264a5946c6e7669d26c07f39-dirty
author anmoljh
date Wed, 18 Oct 2017 08:41:12 -0400
parents 85944f34e129
children
comparison
equal deleted inserted replaced
2:85944f34e129 3:d98e0124cb31
11 11
12 if(levels(file[,col])[1] != ""){ 12 if(levels(file[,col])[1] != ""){
13 dataX <- file[,1:(col-1)] 13 dataX <- file[,1:(col-1)]
14 dataY <- file[,col] 14 dataY <- file[,col]
15 stopifnot(nrow(dataX) == length(dataY)) 15 stopifnot(nrow(dataX) == length(dataY))
16 saveRDS(dataX,dataY,file=arg2) 16 save(dataX,dataY,file=arg2)
17 } 17 }
18 else{ 18 else{
19 cat("the Outcome column has less number of entry than number of compounds.please check input file.\n",file=stderr()) 19 cat("the Outcome column has less number of entry than number of compounds.please check input file.\n",file=stderr())
20 } 20 }
21 } 21 }