emphasize.rows: Emphasize rows/columns/cells

Description Usage Arguments Examples

View source: R/helpers.R

Description

Storing indexes of cells to be (strong) emphasized of a tabular data in an internal buffer that can be released and applied by pandoc.table, pander or evals later.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

Arguments

x

vector of row/columns indexes or an array like returned by which(..., arr.ind = TRUE)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
n <- data.frame(x = c(1,1,1,1,1), y = c(0,1,0,1,0))
emphasize.cols(1)
emphasize.rows(1)
pandoc.table(n)

emphasize.strong.cells(which(n == 1, arr.ind = TRUE))
pander(n)

## End(Not run)

Example output

sh: 1: cannot create /dev/null: Permission denied

-------
 x   y 
--- ---
*1* *0*

*1*  1 

*1*  0 

*1*  1 

*1*  0 
-------


-----------
  x     y  
----- -----
**1**   0  

**1** **1**

**1**   0  

**1** **1**

**1**   0  
-----------

pander documentation built on Nov. 6, 2018, 5:05 p.m.