pradyumna J - 2017-09-25

This problem was solved by changing na.rm value from na.rm=T to na.rm=TRUE in the R scripts.