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)

january3/colorDF documentation built on Oct. 4, 2022, 8:33 a.m.