From e83d7591ef4c8082f2b4f9fa045745147c011f5c Mon Sep 17 00:00:00 2001 From: Efrain Gonzalez Date: Sun, 25 Jun 2017 22:48:36 -0400 Subject: [PATCH] Update to dndat function --- RAutoClDs.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RAutoClDs.R b/RAutoClDs.R index 087f984..5c2fe78 100644 --- a/RAutoClDs.R +++ b/RAutoClDs.R @@ -162,7 +162,7 @@ dndat <- function(NDATA){ DDATA[i,j]=0L } else if(NDATA[i,j] > 1){ DDATA[i,j]=2L - } else if(-1 <= NDATA[i,j] && NDATA[i,j] < 1){ + } else if(-1 <= NDATA[i,j] && NDATA[i,j] <= 1){ DDATA[i,j]=1L } } else{ -- 2.29.0