aboutsummaryrefslogtreecommitdiff
path: root/R/ilr.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-11-17 18:14:32 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2016-11-17 18:23:31 +0100
commitf3f415520c89f9d8526bf6fadc862ebd44be220d (patch)
treee80d26e3b4f56ebe872888bed8f01a21d49b7ff4 /R/ilr.R
parentf52fffd9eab13b7902bf767dd9cd7f0e7abf8069 (diff)
Remove trailing whitespace, clean headers
Also ignore test.R in the top level directory, as it is not meant to be public
Diffstat (limited to 'R/ilr.R')
-rw-r--r--R/ilr.R4
1 files changed, 1 insertions, 3 deletions
diff --git a/R/ilr.R b/R/ilr.R
index 389653e7..620afc49 100644
--- a/R/ilr.R
+++ b/R/ilr.R
@@ -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)

Contact - Imprint