is.fcat | R Documentation |
This function tests whether an object is a format catalog. The format catalog has a class of "fcat".
is.fcat(x)
x |
The object to test. |
TRUE or FALSE, depending on whether or not the object is a format catalog.
Other fcat:
as.data.frame.fcat()
,
as.fcat()
,
as.fcat.data.frame()
,
as.fcat.fmt_lst()
,
as.fcat.list()
,
fcat()
,
print.fcat()
,
read.fcat()
,
write.fcat()
# 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)
# [1] TRUE
is.fcat(Sys.Date())
# [1] FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.