expr_to_excel: Translate an R expression into an Excel conditional...

View source: R/expr_to_excel.R

expr_to_excelR Documentation

Translate an R expression into an Excel conditional formatting formula

Description

Translate an R expression into an Excel conditional formatting formula

Usage

expr_to_excel(x, data, row_start = 2L)

Arguments

x

An R-style expression

data

A data frame that expression x relates to

row_start

Integer reflecting the first row of data in the Excel sheet to be output. Defaults to 2.

Value

A character string reflecting an Excel conditional formatting formula

Examples

library(datasets)

expr_to_excel(cyl > 4, mtcars)
expr_to_excel(cyl > 4 & hp < 200, mtcars)


epicentre-msf/qxl documentation built on March 26, 2024, 6:33 p.m.