highlight: Highlight some rows in a data frame

View source: R/tools.R

highlightR Documentation

Highlight some rows in a data frame

Description

Highlight some rows in a data frame

Usage

highlight(x, sel)

Arguments

x

data frame like object

sel

logical vector of length equal to number of rows in the data frame.

Details

Uses print.colorDF() to highlight selected rows in a data frame.

Examples

highlight(mtcars, mtcars$cyl == 6)

colorDF documentation built on Sept. 26, 2022, 5:06 p.m.