R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > ss <- function(TP,TN,FP,FN,bet=1){ + if (is.na(TP)) TP=0 + if (is.na(TN)) TN=0 + if (is.na(FP)) FP=0 + if (is.na(FN)) FN=0 + sen=TP/(TP+FN) + spe=TN/(TN+FP) + pre=TP/(TP+FP) + f = (1+bet^2)*pre*sen/(bet^2*pre+sen) + return(c(sen,spe,pre,f)) + } > > log_up <- function(x){ + ids = which(x<=0) + x[ids] = 0.0000001 + return(log10(x)) + } > library(ggplot2) > > args = (commandArgs(trailingOnly = T)) > print (args) [1] "finput=\"giremi_output.res\"" [2] "fout=\"giremi_output.res.res\"" > for (i in 1:length(args)){ + eval(parse(text=args[[i]])) + } > > #dat <- read.table(file=finput,header=F,row.names=1,comment.char="") > dat <- read.table(file=finput,header=T,comment.char="") Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 382 did not have 24 elements Calls: read.table -> scan Execution halted