Releases: trinker/numform
Version 0.5.0
NEWS
Versioning
Releases will be numbered with the following semantic versioning format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor
and patch) - New additions without breaking backward compatibility bumps the minor
(and resets the patch) - Bug fixes and misc changes bumps the patch
numform 0.4.1 - 0.5.0
BUG FIXES
-
Functions that enable the argument
less.than.replace = TRUEwould result in
the wrong solution if the input value was negative. This has been corrected. -
f_quarterdidn't respect thespaceormaxarguments for some methods. -
alignmentfailed to align correctly if there were leading spaces.
NEW FEATURES
-
highlight_cellsadded as a quick and dirty way to add cell font highlighting. -
The
collapseandgluefunctions from the glue package are reexported
for easy string manipulation. -
f_bin(a.k.a.f_interval) added for turning"[3,5)"form fromcutinto
a more human readable for. There are several different forms off_binso
use?f_binto see them all. -
fv_percent_leadadded to work similar tofv_percent_diffbut using the
formula T_n/T_n-1. -
fv_percent_lead_fixed_relative&fv_percent_diff_fixed_relativeadded in
order to computefv_percent_lead&fv_percent_diffbut keeping the
comparison year as a constant rather than using the prior year in the vector
of elements. -
f_dataand friends (see?f_data) added to convert between data units. For
example, move from 10,000,000,000 (Bytes) to 10GB (Gigabytes) instead.
MINOR FEATURES
-
f_denomfamily of functions picks up aless.than.replaceargument to
replace values that say zero with a less than sing followed by a one and then
the denomination. For example, inc(2, 1234)the digit 2 becomes "<1K". -
f_denompicks up amix.denomargument to allow for the mixing of
denominations. This is useful for tables with a total row that is a
denomination higher than the rest of the column. -
f_ppadded to lower typing onf_prop2percent(digits = 0)(a commonly used function and setting) and to also change
the default digits value to 0 as is typically used in plotting. -
constant_weekdays_abbreviationadded to provide an abbreviated form of
weekdays. -
f_month_name&f_month_abbreviationadded to convert to full name and
3 letter abbreviated month formats. -
f_weekday_name&f_weekday_abbreviationadded to convert to full name and
3 letter abbreviated weekday formats.
CHANGES
- The argument
less_than_replaceinf_prop2percent&f_percenthas been
replaced withless.than.replaceto make dot case consistent for arguments
across the package.
numform 0.3.1 - 0.4.0
BUG FIXES
f_12_hourdid not format correctly if the vector contained missing (NA)
values; see issue #12.
NEW FEATURES
-
f_year,f_12_hour,f_month, andf_weekday(methods based functions)
did not previously have closure, function retuning, forms (i.e.,ff_form)
making them inconsistent in usage. These functions all have a closure, function
returning, form. -
f_quarteradded for working with business quarters. -
f_degreeand friends (f_latitude,f_longitude,f_fahrenheit, &
f_celcius) added for working with degrees in scales and tables.
MINOR FEATURES
-
f_wrappicks up anequal.linesargument to add additional lines to make
each element have the same number of new line characters. This is useful for
legend spacing. -
f_wrappicks up acollapseargument topaste+collapsea vector before
processing. This is useful wrapping subtitles or other longer text blocks. -
f_titlepicks up anupperandlowerargument to allow the user to supply
a vector of regexes to force to be upper/lower regardless of title case.
numform 0.0.6 - 0.3.0
NEW FEATURES
-
f_affirmandf_logicaladded to convert logical and dummy values into
yes/No or True/False strings respectively. -
alignment` added to easily align columns in table formatting functions from
add-on R packages which may be confused by numform's conversion of numeric
to character class, though right table alignment should be maintained. -
f_dateandf_12_houradded to convert dates and times into common in-text
form. -
f_replaceadded as a ggplot2 scalegsubconvenience function. Defaults
to replace '_' with ' '. -
f_titleadded as a ggplot2 scaletools::toTitleCaseconvenience function. -
f_wrapadded as a ggplot2 scalestrwrap+paste(collapse =TRUE)
convenience function. -
f_stateadded for converting state names to their abbreviated form for plots. -
f_yearadded as a ggplot2 scale to convert to 2 digit year form convenience
function. -
f_abbreviationadded for converting string names to their abbreviated form. -
constants added for weekdays, months, and month abbreviations in order to make
factor conversion of levels easier. See?constant_monthsfor more.
MINOR FEATURES
-
f_signpicks upnegativeandpositiveassignments allowing for more
control in format (previously +/- were assigned). This enables the ability to
give other characters tailored for document formats such as html, LaTeX, etc. -
f_prop2percentandf_percentpick up a logicalless_than_replace
argument that replaces values lower than this with a less than sign and the
cut point specified by thedigitsargument.
CHANGES
f_denomnow returnsxif themax< 1K.
numform 0.0.1 - 0.0.5
Format numbers for publication; includes the removal of leading zeros,
standardization of number of digits, addition of affixes, and a p-value
formatter. These tools combine the functionality of several 'base' functions
such as paste(), format(), and sprintf() into specific use case functions that
are named in a way that is consistent with usage, making their names easy to
remember and easy to deploy.
Version 0.4.0
NEWS
Versioning
Releases will be numbered with the following semantic versioning format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor
and patch) - New additions without breaking backward compatibility bumps the minor
(and resets the patch) - Bug fixes and misc changes bumps the patch
numform 0.3.1 - 0.4.0
BUG FIXES
f_12_hourdid not format correctly if the vector contained missing (NA)
values; see issue #12.
NEW FEATURES
-
f_year,f_12_hour,f_month, andf_weekday(methods based functions)
did not previously have closure, function retuning, forms (i.e.,ff_form)
making them inconsistent in usage. These functions all have a closure, function
returning, form. -
f_quarteradded for working with business quarters. -
f_degreeand friends (f_latitude,f_longitude,f_fahrenheit, &
f_celcius) added for working with degrees in scales and tables.
MINOR FEATURES
-
f_wrappicks up anequal.linesargument to add additional lines to make
each element have the same number of new line characters. This is useful for
legend spacing. -
f_wrappicks up acollapseargument topaste+collapsea vector before
processing. This is useful wrapping subtitles or other longer text blocks. -
f_titlepicks up anupperandlowerargument to allow the user to supply
a vector of regexes to force to be upper/lower regardless of title case.
numform 0.0.6 - 0.3.0
NEW FEATURES
-
f_affirmandf_logicaladded to convert logical and dummy values into
yes/No or True/False strings respectively. -
alignment` added to easily align columns in table formatting functions from
add-on R packages which may be confused by numform's conversion of numeric
to character class, though right table alignment should be maintained. -
f_dateandf_12_houradded to convert dates and times into common in-text
form. -
f_replaceadded as a ggplot2 scalegsubconvenience function. Defaults
to replace '_' with ' '. -
f_titleadded as a ggplot2 scaletools::toTitleCaseconvenience function. -
f_wrapadded as a ggplot2 scalestrwrap+paste(collapse =TRUE)
convenience function. -
f_stateadded for converting state names to their abbreviated form for plots. -
f_yearadded as a ggplot2 scale to convert to 2 digit year form convenience
function. -
f_abbreviationadded for converting string names to their abbreviated form. -
constants added for weekdays, months, and month abbreviations in order to make
factor conversion of levels easier. See?constant_monthsfor more.
MINOR FEATURES
-
f_signpicks upnegativeandpositiveassignments allowing for more
control in format (previously +/- were assigned). This enables the ability to
give other characters tailored for document formats such as html, LaTeX, etc. -
f_prop2percentandf_percentpick up a logicalless_than_replace
argument that replaces values lower than this with a less than sign and the
cut point specified by thedigitsargument.
CHANGES
f_denomnow returnsxif themax< 1K.
numform 0.0.1 - 0.0.5
Format numbers for publication; includes the removal of leading zeros,
standardization of number of digits, addition of affixes, and a p-value
formatter. These tools combine the functionality of several 'base' functions
such as paste(), format(), and sprintf() into specific use case functions that
are named in a way that is consistent with usage, making their names easy to
remember and easy to deploy.