Formatting Tools for Scientific Journal Writing
Add/overwrite a column in a data.frame or data.table, preserving class...
Assert CLU relationships
Assert data type
Assert set choice
Assert style schema
Assert Greater Than or Equal To
Assert all elements of x are in y
Assert no elements of x are in y
Strict data.frame constructor
Drop a column from a data.frame or data.table, preserving class and mo...
Vectorized version of drop_column()
En-dash
Format magnitude
Format central, lower, upper value triplets for journal presentation
Return a table with formatted central, lower, upper
Format central, lower, upper value triplets for Lancet journal present...
Return a table with formatted central, lower, upper for Lancet journal
Format multiple data.frame 'mean_*' columns for presentation (by data ...
Format central, lower, upper value triplets for Nature journal present...
Return a table with formatted central, lower, upper for Nature journal
Format vector of items with Oxford comma
Format and round central/lower/upper value sets by magnitude without u...
Format and round count-ish number
Format and round with data-type suffix
Format and round with data-type suffix
Format and round proportion-ish number
Format and round
Get data type labels
Get data types
Get dictionary by name
Get all pre-assigned .dict_formats names
Get the package environment
Helper for format_means_df(), perhaps others
Get style schema
Get a style from the styles dictionary
Lock select bindings in the global environment
Mid-dot
Make a new style by args
Prepare central, lower, upper value triplets for journal presentation
Set dictionary by name
Define magnitude, magnitude label and denominator for a vector of nume...
Set a new style by list
Lancet style schema
Nature style schema
Wrapper for switch that errors helpfully if no match is found
Thin space
Scientific journal numeric formatting policies implemented in code. Emphasis on formatting mean/upper/lower sets of values to pasteable text for journal submission. For example c(2e6, 1e6, 3e6) becomes "2.00 million (1.00--3.00)". Lancet and Nature have built-in styles for rounding and punctuation marks. Users may extend journal styles arbitrarily. Four metrics are supported; proportions, percentage points, counts and rates. Magnitudes for all metrics are discovered automatically.