Converts a normal list to a formatting list. All
other parameters are the same as the
# S3 method for list as.flist(x, type = "column", lookup = NULL, simplify = TRUE)
List to convert.
The type of formatting list. Valid values are 'row' or 'column'. The default value is 'column'.
A lookup vector. Used for looking up the format from the formatting list. This parameter is only used for 'row' type formatting lists.
Whether to simplify the results to a vector. Valid values are TRUE or FALSE. Default is TRUE. If the value is set to FALSE, the return type will be a list.
A formatting list object.
To apply more than one formatting object to a vector, use a formatting list. There are two types of formatting list: column and row. The column type formatting lists applies all formats to all values in the vector. The row type formatting list can apply a different format to each value in the vector.
Further, there are two styles of row type list: ordered and lookup. The ordered style applies each format in the list to the vector values in the order specified. The ordered style will recycle the formats as needed. The lookup style formatting list uses a lookup to determine which format from the list to apply to a particular value of the vector. The lookup column values should correspond to names on the formatting list.
Examples of column type and row type formatting lists are given below.
flist function documentation for additional details.