diff options
Diffstat (limited to 'R/ilr.R')
-rw-r--r-- | R/ilr.R | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,3 @@ -# $Id$ - # Copyright (C) 2012 René Lehmann, Johannes Ranke # Contact: jranke@uni-bremen.de @@ -44,7 +42,7 @@ invilr<-function(x) { # Work around a numerical problem with NaN values returned by the above # Only works if there is only one NaN value: replace it with 1 # if the sum of the other components is < 1e-10 - if (sum(is.na(z)) == 1 && sum(z[!is.na(z)]) < 1e-10) + if (sum(is.na(z)) == 1 && sum(z[!is.na(z)]) < 1e-10) z = ifelse(is.na(z), 1, z) return(z) |