R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-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. 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. > par4 = '0.05' > par3 = '0,35' > par2 = '13,781' > par1 = '63' > par1<-as.numeric(par1) > par2<-as.numeric(par2) Warning message: NAs introduced by coercion > par3<-as.numeric(par3) Warning message: NAs introduced by coercion > par4<-as.numeric(par4) > df <- par1 - 1 > if (par2 > par3) + { + myc <- par3 / df * qchisq(1-par4,df) + } else { + myc <- par3 / df * qchisq(par4,df) + } Error in if (par2 > par3) { : missing value where TRUE/FALSE needed Execution halted