Learn R Programming

XML (version 3.1-1)

toHTML: Create an HTML representation of the given R object, using internal C-level nodes

Description

This generic function and the associated methods are intended to create an HTML tree that represents the R object in some intelligent manner. For example, we represent a vector as a table and we represent a matrix also as a table.

Usage

toHTML(x, context = NULL)

Arguments

Value

  • an object of class XMLInternalNode

concept

  • XML
  • serialization
  • data exchange

Details

It would be nicer if we could pass additional arguments to control whether the outer/parent layer is created, e.g. when reusing code for a vector for a row of a matrix.

See Also

The R2HTML package.

Examples

Run this code
cat(as(toHTML(rnorm(10)), "character"))

Run the code above in your browser using DataLab