summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-02-10 11:59:37 +0530
committerSuraj Yerramilli2016-02-10 11:59:37 +0530
commit33c84e38231aaa82a41b3e92fc9656b0cca51f0c (patch)
tree971d5ac0b477e23f6c239b086fba428ced212e04 /R
parentd3d1b26b6af4141ab3ec85ae81e1c589bdd80387 (diff)
downloadSysID-R-code-33c84e38231aaa82a41b3e92fc9656b0cca51f0c.tar.gz
SysID-R-code-33c84e38231aaa82a41b3e92fc9656b0cca51f0c.tar.bz2
SysID-R-code-33c84e38231aaa82a41b3e92fc9656b0cca51f0c.zip
error fix
Diffstat (limited to 'R')
-rw-r--r--R/idframe.R1
1 files changed, 1 insertions, 0 deletions
diff --git a/R/idframe.R b/R/idframe.R
index b37ef76..b90eeef 100644
--- a/R/idframe.R
+++ b/R/idframe.R
@@ -27,6 +27,7 @@ idframe <- function(output=NULL,input=NULL,Ts = 1,start=0,end=NULL,
l <- list(output,input)
l2 <- lapply(l,data.frame)
n <- dim(l2[[1]])
+ dims <- sapply(l2,ncol)
colnames(l2[[1]]) <- sapply(1:dims[1],
function(x) paste("y",x,sep = ""))
colnames(l2[[2]]) <- sapply(1:dims[2],