aboutsummaryrefslogtreecommitdiff
path: root/R/print.sparsestep.R
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2016-02-10 20:19:51 -0500
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2016-02-10 20:19:51 -0500
commit6c3d2ff1cb9e7bd3bf1426e1ec4cecd0891ea089 (patch)
tree0cf43714e1252ae833e473dc6beed6ddad953663 /R/print.sparsestep.R
parentadded authors and dependencies (diff)
downloadsparsestep-6c3d2ff1cb9e7bd3bf1426e1ec4cecd0891ea089.tar.gz
sparsestep-6c3d2ff1cb9e7bd3bf1426e1ec4cecd0891ea089.zip
bugfixes, documentation improvements, and generic function agreement
Diffstat (limited to 'R/print.sparsestep.R')
-rw-r--r--R/print.sparsestep.R20
1 files changed, 10 insertions, 10 deletions
diff --git a/R/print.sparsestep.R b/R/print.sparsestep.R
index 336d705..549815b 100644
--- a/R/print.sparsestep.R
+++ b/R/print.sparsestep.R
@@ -2,23 +2,23 @@
#'
#' @description Prints a short text of a fitted SparseStep model
#'
-#' @param obj a "sparsestep" object to print
+#' @param x a "sparsestep" object to print
+#' @param ... further argument are ignored
#'
#' @export
#'
#' @aliases print
#'
#' @examples
-#' data(diabetes)
-#' attach(diabetes)
-#' object <- sparsestep(x, y)
-#' print(object)
-#' detach(diabetes)
+#' x <- matrix(rnorm(100*20), 100, 20)
+#' y <- rnorm(100)
+#' fit <- sparsestep(x, y)
+#' print(fit)
#'
-print.sparsestep <- function(obj, ...)
+print.sparsestep <- function(x, ...)
{
cat("\nCall:\n")
- dput(obj$call)
- cat("Lambda:", obj$lambda, "\n")
- invisible(obj)
+ dput(x$call)
+ cat("Lambda:", x$lambda, "\n")
+ invisible(x)
}