as_tex: Coerce characters and matrices to tex

Description Usage Arguments Examples

Description

'as_tex()' can be applied to a 'character' or a 'matrix' object, so that the input is changed into the new object 'tex'. This might make up the defect of 'knitr_print' method for matrix.

Usage

1
2
3
4
5
6
7
as_tex(x, ...)

## S3 method for class 'character'
as_tex(x, ...)

## S3 method for class 'matrix'
as_tex(x, ...)

Arguments

x

'character' or 'matrix' object to be 'tex'

...

Additional arguments passed to the S3 method.

Examples

1
2
A <- matrix(1:9, nrow = 3)
as_tex(A)

ygeunkim/rmdtool documentation built on July 1, 2019, 1:57 p.m.