summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-03-18 13:04:44 +0530
committerSuraj Yerramilli2016-03-18 13:04:44 +0530
commit274ae5bf9d534fe3cba1da4ffba232395027324d (patch)
tree20bb580361c1831537ea031d9a9222e1bf105045
parenta5021c007c6f4668aa284cf3100b38c1b649fa04 (diff)
downloadSysID-R-code-274ae5bf9d534fe3cba1da4ffba232395027324d.tar.gz
SysID-R-code-274ae5bf9d534fe3cba1da4ffba232395027324d.tar.bz2
SysID-R-code-274ae5bf9d534fe3cba1da4ffba232395027324d.zip
minor corrections
-rw-r--r--R/poly.R3
1 files changed, 2 insertions, 1 deletions
diff --git a/R/poly.R b/R/poly.R
index 2c29b3f..ee03fe4 100644
--- a/R/poly.R
+++ b/R/poly.R
@@ -56,11 +56,12 @@ typecheck <- function(x){
} else{
out <- if(y$C) "ar" else "arma"
}
- if(y$B) out <- paste(out,"x",sep="")
+ if(!y$B) out <- paste(out,"x",sep="")
} else{
out <- "polynomial"
}
}
+ out
}
checkUnity <- function(x){