summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
Diffstat (limited to 'R')
-rw-r--r--R/readData.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/readData.R b/R/readData.R
index 6729a1b..c038c2f 100644
--- a/R/readData.R
+++ b/R/readData.R
@@ -18,7 +18,7 @@ read.idframe <- function(data,ninputs=NULL,Ts = 1,
unit=c("seconds","minutes","hours",
"days")[1]){
outIndex <- 1:dim(data)[2]; inputs <- NULL
- if(ninputs==0){
+ if(ninputs!=0){
inputs <- data[,1:ninputs,drop=F]
outIndex <- seq(ninputs+1,dim(data)[2],by=1)
}