[R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread SHASHI SETH
Hi, I am getting the following error: Error in if ((sum > 0 && sums1 > 0 && sums2 > 0) != NA) { : missing value where TRUE/FALSE needed I have including my code below for your review: fitness_1_data [[alternative HTML version deleted]]

[R] very long processing time

2016-05-10 Thread SHASHI SETH
Hi, I have implemented following program in R, that reads data from the "dtm_mydata.csv". file size is 114,029 kB, saved document Term matrix. Prog. performing some calculation and writing in a file. my computer RAM is 16 GB. To execute this program its taking around 25 hours. can any