Learn R Programming

OpasnetUtils (version 1.3)

oprint: Print ovariables or data frames in html format.

Description

Oprint uses xtable to output ovariables or data.frames or matrix as html formatted tables. In other cases uses regular print but adds formatting.

Usage

oprint(x, pre = TRUE, ...)
oprint.table(x, show_all = FALSE, sortable = TRUE, ...)

Arguments

x

Any object with a print or oprint method.

pre

TRUE for <pre> formatting.

show_all

if TRUE all data rows are printed, else only first thousand rows get printed (default).

sortable

if TRUE output table is made sortable.

extra arguments are passed to oprint.table and/or xtable

Value

Input data as html formatted table string.

Details

If argument x is an ovariable, its output-slot gets printed. If output-slot is empty, EvalOutput will be automatically executed to generate output. This function is aimed for being used within Opasnet only! R console will print out html markup. oprint.table is not exported. Use oprint instead and ... to pass arguments show_all and sortable.

See also: http://en.opasnet.org/

See Also

xtable

Examples

Run this code
x <- data.frame(c(1,2),c(2,4))
oprint(x)

Run the code above in your browser using DataLab