Package: numform 0.7.1

numform: Tools to Format Numbers for Publication

Format numbers and plots 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.

Authors:Tyler Rinker [aut, cre]

numform_0.7.1.tar.gz
numform_0.7.1.zip(r-4.5)numform_0.7.1.zip(r-4.4)numform_0.7.1.zip(r-4.3)
numform_0.7.1.tgz(r-4.4-any)numform_0.7.1.tgz(r-4.3-any)
numform_0.7.1.tar.gz(r-4.5-noble)numform_0.7.1.tar.gz(r-4.4-noble)
numform_0.7.1.tgz(r-4.4-emscripten)numform_0.7.1.tgz(r-4.3-emscripten)
numform.pdf |numform.html
numform/json (API)
NEWS

# Install 'numform' in R:
install.packages('numform', repos = c('https://trinker.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/trinker/numform/issues

On CRAN:

number-formating

6.06 score 51 stars 1 packages 150 scripts 726 downloads 160 exports 1 dependencies

Last updated 3 years agofrom:171a423941. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winOKOct 31 2024
R-4.5-linuxOKOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 2024

Exports:alignmentas_factorconstant_monthsconstant_months_abbreviationconstant_quartersconstant_weekdaysconstant_weekdays_abbreviationf_12_hourf_abbreviationf_affirmf_affixf_billsf_binf_bin_rightf_bin_textf_bin_text_rightf_bytef_celciusf_commaf_dataf_data_abbreviationf_datef_degreef_denomf_dollarf_exaf_fahrenheitf_gigaf_intervalf_interval_rightf_interval_textf_interval_text_rightf_kilof_latitudef_listf_list_ampf_logicalf_longitudef_mean_sdf_megaf_millsf_monthf_month_abbreviationf_month_namef_numf_num_percentf_ordinalf_pad_leftf_pad_rightf_pad_zerof_parenthesisf_percentf_petaf_ppf_prefixf_prop2percentf_pvalf_quarterf_replacef_responsef_signf_statef_suffixf_teraf_text_barf_thousf_titlef_trillsf_weekdayf_weekday_abbreviationf_weekday_namef_wrapf_yearf_yottaf_zettaff_12_hourff_abbreviationff_affirmff_affixff_billsff_binff_bin_rightff_bin_textff_bin_text_rightff_byteff_celciusff_commaff_dataff_dateff_degreeff_denomff_dollarff_exaff_fahrenheitff_gigaff_intervalff_interval_rightff_interval_textff_interval_text_rightff_kiloff_latitudeff_listff_logicalff_longitudeff_mean_sdff_megaff_millsff_monthff_month_abbreviationff_month_nameff_numff_num_percentff_ordinalff_pad_leftff_pad_rightff_pad_zeroff_parenthesisff_percentff_petaff_ppff_prefixff_prop2percentff_pvalff_quarterff_replaceff_responseff_signff_stateff_suffixff_teraff_text_barff_thousff_titleff_trillsff_weekdayff_weekday_abbreviationff_weekday_nameff_wrapff_yearff_yottaff_zettaffv_num_percentffv_percentffv_percent_diffffv_percent_diff_fixed_relativeffv_percent_leadffv_percent_lead_fixed_relativefv_num_percentfv_percentfv_percent_difffv_percent_diff_fixed_relativefv_percent_leadfv_percent_lead_fixed_relativefv_runsglueglue_collapsehighlight_cellsround_anyround2time_digits

Dependencies:glue

Readme and manuals

Help Manual

Help pageTopics
Detect Column Alignmentalignment
Convert Select 'numform' Outputs to Factoras_factor
Constantsconstant_months constant_months_abbreviation constant_quarters constant_weekdays constant_weekdays_abbreviatio constant_weekdays_abbreviation
Format 12 Hour Timesff_12_hour f_12_hour f_12_hour.default f_12_hour.hms f_12_hour.integer f_12_hour.numeric
Abbreviate Stringsff_abbreviation f_abbreviation
Yes/No Convert Logical/Dummy Codeff_affirm f_affirm
Add String Affixesff_affix ff_prefix ff_suffix f_affix f_prefix f_suffix
Convert Binned Intervals to Readable Formff_bin ff_bin_right ff_bin_text ff_bin_text_right ff_interval ff_interval_right ff_interval_text ff_interval_text_right f_bin f_bin_right f_bin_text f_bin_text_right f_interval f_interval_right f_interval_text f_interval_text_right
Comma Format Large Integersff_comma f_comma
Convert and Abbreviate Units of Data.ff_byte ff_data ff_exa ff_giga ff_kilo ff_mega ff_peta ff_tera ff_yotta ff_zetta f_byte f_data f_exa f_giga f_kilo f_mega f_peta f_tera f_yotta f_zetta
Convert Data (byte) Labels to an Abbreviated Formf_data_abbreviation
Format Datesff_date f_date
Abbreviate Numbersff_bills ff_denom ff_mills ff_thous ff_trills f_bills f_denom f_mills f_thous f_trills
Format Dollarsff_dollar f_dollar
Format Degrees (e.g., Temperature, Coordinates)ff_celcius ff_degree ff_fahrenheit ff_latitude ff_longitude f_celcius f_degree f_fahrenheit f_latitude f_longitude
Format List Seriesff_list f_list f_list_amp
True/False Convert Logical/Dummy Codeff_logical ff_response f_logical f_response
Format Months to One Letter Abbreviationff_month ff_month_abbreviation ff_month_name f_month f_month.Date f_month.default f_month.hms f_month.numeric f_month.POSIXt f_month_abbreviation f_month_abbreviation.Date f_month_abbreviation.default f_month_abbreviation.hms f_month_abbreviation.numeric f_month_abbreviation.POSIXt f_month_name f_month_name.Date f_month_name.default f_month_name.hms f_month_name.numeric f_month_name.POSIXt
Format Digitsff_num f_num
Add Ordinal Suffixes (-st, -nd, -rd, -th) to Numbersff_ordinal f_ordinal
Pad Numbers with Leading Zerosff_pad_left ff_pad_right ff_pad_zero f_pad_left f_pad_right f_pad_zero
Parenthesis Formatting of Two Vectorsff_mean_sd ff_num_percent ff_parenthesis f_mean_sd f_num_percent f_parenthesis
Format Percentagesff_percent ff_pp ff_prop2percent f_percent f_pp f_prop2percent
Format P-Valuesff_pval f_pval
Format Quartersff_quarter f_quarter f_quarter.Date f_quarter.default f_quarter.hms f_quarter.numeric f_quarter.POSIXt
Replace Characters in Stringsff_replace f_replace
Format Numeric Signsff_sign f_sign
Format State Names as Abbreviationsff_state f_state
Format Text Based Bar Plotsff_text_bar f_text_bar
Convert First Letter of Words to Title Caseff_title f_title
Format Weekdays to One Letter Abbreviationff_weekday ff_weekday_abbreviation ff_weekday_name f_weekday f_weekday.Date f_weekday.default f_weekday.hms f_weekday.numeric f_weekday.POSIXt f_weekday_abbreviation f_weekday_abbreviation.Date f_weekday_abbreviation.default f_weekday_abbreviation.hms f_weekday_abbreviation.numeric f_weekday_abbreviation.POSIXt f_weekday_name f_weekday_name.Date f_weekday_name.default f_weekday_name.hms f_weekday_name.numeric f_weekday_name.POSIXt
Wrap Stringsff_wrap f_wrap
Format Yearsff_year f_year f_year.Date f_year.hms f_year.numeric f_year.POSIXt
Convert a Numeric Vector to Number and Parenthetical Percentagesffv_num_percent fv_num_percent
Convert a Numeric Vector to Percentagesffv_percent fv_percent
Percent Differenceffv_percent_diff ffv_percent_diff_fixed_relative fv_percent_diff fv_percent_diff_fixed_relative
Percent Differenceffv_percent_lead ffv_percent_lead_fixed_relative fv_percent_lead fv_percent_lead_fixed_relative
Remove Subsequent Runs from a Vectorfv_runs
Highlight Cellshighlight_cells
Tools to Format Numbers for Publicationnumform package-numform
Roundinground2 round_any
Compute Digits Needed for Quarter Hour Time Vectortime_digits