Learn R Programming

scmamp (version 0.2.3)

booleanMatrix: Creation of boolean matrices for highlighting results

Description

A simple function to create boolean matrices to be used when constructing LaTeX tables.

Usage

booleanMatrix(data, find = "max", th = 0, by = "row")

Arguments

data
It can be a data frame, a matrix or a vector.
find
A string indicating what has to be detected. Possible values are:
  • 'eq'
{ All values equal to the value passed in th} 'le'{ All values lower or equal to the value passed in th

Value

  • A boolean matrix that matches in dimension the output data and where the identified elements are marked as TRUE.

item

  • th
  • by

code

'mat'

Examples

Run this code
data('data_gh_2008')
booleanMatrix(data.gh.2008, find='min', by='row')
booleanMatrix(data.gh.2008, find='ge',  th=0.5)

Run the code above in your browser using DataLab