Learn R Programming

colorDF (version 0.1.7)

highlight: 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

Run this code
highlight(mtcars, mtcars$cyl == 6)

Run the code above in your browser using DataLab