summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-01-28 13:49:33 +0530
committerSuraj Yerramilli2015-01-28 13:49:33 +0530
commit0e10b9145ef9bea896d7ad028d997cfb8606e795 (patch)
treea43638308e6e5c81b5ed9e9fc99941cc8db49668
parenta930bdfc8d21362b6b2a51caf84221e6cae8e5b4 (diff)
downloadSysID-R-code-0e10b9145ef9bea896d7ad028d997cfb8606e795.tar.gz
SysID-R-code-0e10b9145ef9bea896d7ad028d997cfb8606e795.tar.bz2
SysID-R-code-0e10b9145ef9bea896d7ad028d997cfb8606e795.zip
added a summary function
-rw-r--r--R/idframe.R16
1 files changed, 11 insertions, 5 deletions
diff --git a/R/idframe.R b/R/idframe.R
index dab541f..b84884b 100644
--- a/R/idframe.R
+++ b/R/idframe.R
@@ -43,11 +43,6 @@ idframe <- function(output=numeric(0),input=numeric(0),
return(dat)
}
-# print method for idframe class
-#print.idframe <- function(object,...){
-# print(object)
-#}
-
# plot method for idframe object
plot.idframe <- function(object,...){
@@ -85,5 +80,16 @@ plot.idframe <- function(object,...){
# summary method for idframe object
summary.idframe <- function(object,...){
+ output <- summary(object$output)
+ input <- summary(object$input)
+
+ out <- list(outputs=out_sum,inputs=input_sum,Ts=object$Ts,type=object$type,
+ tUnit=object$tUnit)
+ if(type=="time"){
+ out$tStart <- object$tStart;out$tEnd <- object$tEnd
+ } else{
+ out$frequencies <- object$frequencies;out$fUnit <- object$fUnit
+ }
+ return(out)
} \ No newline at end of file