[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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[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 body help me what is 

wrong, why this much time is taken. Although it is doing the job what is 
required

fitness_1_data 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.