deb: Debugging function

Description Usage Arguments Author(s) Examples

View source: R/deb.R

Description

A simple but useful debugging function. It first announces the object to printed and then prints it.

Usage

1
deb(x, method = c("print", "cat"))

Arguments

x

The object to be printed

method

The method for printing x. Default is "print", which uses print for printing; "cat" uses cat for printing. The latter is useful for short objects (scalar and vectors), the former for more structured objects (data frames, matrices, lists etc).

Author(s)

Hein Putter H.Putter@lumc.nl

Examples

1
2
3
4
5
tm <- c(0.2,0.5,1,1.2,1.8,4)
ta <- 2*tm
dfr <- data.frame(time=tm, stepf=ta)
deb(dfr, method="print")
deb(tm, method="cat")

dynpred documentation built on May 2, 2019, 5:07 a.m.