For vec_nlines, calculate the number of lines each element of a column vector will
take to render. For format_colvector,
format_colvector(
df,
colnm,
colvec = df[[colnm]],
round_type = valid_round_type
)vec_nlines(
vec,
max_width = NULL,
fontspec = dflt_courier,
round_type = valid_round_type
)
# S4 method for ANY
vec_nlines(
vec,
max_width = NULL,
fontspec = dflt_courier,
round_type = valid_round_type
)
(numeric)
a vector of the number of lines element-wise that will be
needed to render the elements of vec to width max_width.
(listing_df)
the listing.
(string)
column name.
(vector)
column values based on colnm.
(string)
the type of rounding to perform.
Allowed values are ("iec" (default), "iec_mod" or "sas").
See formatters::format_value() for details.
(vector)
a vector.
(numeric(1) or NULL)
the width to render the column with.