summaryrefslogtreecommitdiff
path: root/R/idframe.R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-01-29 18:24:51 +0530
committerSuraj Yerramilli2015-01-29 18:24:51 +0530
commitce5175a0deb3b1b4e46f66ef135672be022f267c (patch)
treef5f43736a5040734db3ec85b97b1a28d528ac0b0 /R/idframe.R
parent595f1dd50d0f76f8d2eb7b3dd62418eafaf23eba (diff)
downloadSysID-R-code-ce5175a0deb3b1b4e46f66ef135672be022f267c.tar.gz
SysID-R-code-ce5175a0deb3b1b4e46f66ef135672be022f267c.tar.bz2
SysID-R-code-ce5175a0deb3b1b4e46f66ef135672be022f267c.zip
added documentation for plot and summary functions of the idframe class
Diffstat (limited to 'R/idframe.R')
-rw-r--r--R/idframe.R17
1 files changed, 14 insertions, 3 deletions
diff --git a/R/idframe.R b/R/idframe.R
index 00199ea..504478b 100644
--- a/R/idframe.R
+++ b/R/idframe.R
@@ -58,7 +58,13 @@ idframe <- function(output=numeric(0),input=numeric(0),
return(dat)
}
-# plot method for idframe object
+#' Plotting idframe objects
+#'
+#' Plotting method for objects inherting from class "idframe"
+#'
+#' @param object an object of class "idframe"
+#' @param ... additional arguments to be passed to the `plot` function
+#' @export
plot.idframe <- function(object,...){
p <- dim(object$output)[2];m <- dim(object$input)[2]
@@ -93,8 +99,13 @@ plot.idframe <- function(object,...){
}
}
-# summary method for idframe object
-summary.idframe <- function(object,...){
+#' idframe-Object summaries
+#'
+#' Generates a summary of objects inherting from class `idframe`
+#'
+#' @param object an object of class "idframe"
+#' @export
+summary.idframe <- function(object){
out_sum <- summary(object$output)
in_sum <- summary(object$input)