Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.fcat

Class test for a format catalog


Description

This function tests whether an object is a format catalog. The format catalog has a class of "fcat".

Usage

is.fcat(x)

Arguments

x

The object to test.

Value

TRUE or FALSE, depending on whether or not the object is a format catalog.

See Also

Examples

# Create format catalog
c1 <- fcat(num_fmt  = "%.1f",
           label_fmt = value(condition(x == "A", "Label A"),
                             condition(x == "B", "Label B"),
                             condition(TRUE, "Other")),
           date_fmt = "%d%b%Y")
           
# Test for "fcat" class
is.fcat(c1)  
is.fcat(Sys.Date())

fmtr

Easily Apply Formats to Data

v1.5.0
CC0
Authors
David Bosak
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.