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:
numform_0.7.1.tar.gz
numform_0.7.1.zip(r-4.7)numform_0.7.1.zip(r-4.6)numform_0.7.1.zip(r-4.5)
numform_0.7.1.tgz(r-4.6-any)numform_0.7.1.tgz(r-4.5-any)
numform_0.7.1.tar.gz(r-4.7-any)numform_0.7.1.tar.gz(r-4.6-any)
numform_0.7.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
numform/json (API)
NEWS
| # Install 'numform' in R: |
| install.packages('numform', repos = c('https://trinker.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/trinker/numform/issues
Last updated from:171a423941. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 111 | ||
| source / vignettes | OK | 168 | ||
| linux-release-x86_64 | OK | 98 | ||
| macos-release-arm64 | OK | 78 | ||
| macos-oldrel-arm64 | OK | 103 | ||
| windows-devel | OK | 104 | ||
| windows-release | OK | 71 | ||
| windows-oldrel | OK | 76 | ||
| wasm-release | OK | 92 |
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 page | Topics |
|---|---|
| Detect Column Alignment | alignment |
| Convert Select 'numform' Outputs to Factor | as_factor |
| Constants | constant_months constant_months_abbreviation constant_quarters constant_weekdays constant_weekdays_abbreviatio constant_weekdays_abbreviation |
| Format 12 Hour Times | ff_12_hour f_12_hour f_12_hour.default f_12_hour.hms f_12_hour.integer f_12_hour.numeric |
| Abbreviate Strings | ff_abbreviation f_abbreviation |
| Yes/No Convert Logical/Dummy Code | ff_affirm f_affirm |
| Add String Affixes | ff_affix ff_prefix ff_suffix f_affix f_prefix f_suffix |
| Convert Binned Intervals to Readable Form | ff_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 Integers | ff_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 Form | f_data_abbreviation |
| Format Dates | ff_date f_date |
| Abbreviate Numbers | ff_bills ff_denom ff_mills ff_thous ff_trills f_bills f_denom f_mills f_thous f_trills |
| Format Dollars | ff_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 Series | ff_list f_list f_list_amp |
| True/False Convert Logical/Dummy Code | ff_logical ff_response f_logical f_response |
| Format Months to One Letter Abbreviation | ff_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 Digits | ff_num f_num |
| Add Ordinal Suffixes (-st, -nd, -rd, -th) to Numbers | ff_ordinal f_ordinal |
| Pad Numbers with Leading Zeros | ff_pad_left ff_pad_right ff_pad_zero f_pad_left f_pad_right f_pad_zero |
| Parenthesis Formatting of Two Vectors | ff_mean_sd ff_num_percent ff_parenthesis f_mean_sd f_num_percent f_parenthesis |
| Format Percentages | ff_percent ff_pp ff_prop2percent f_percent f_pp f_prop2percent |
| Format P-Values | ff_pval f_pval |
| Format Quarters | ff_quarter f_quarter f_quarter.Date f_quarter.default f_quarter.hms f_quarter.numeric f_quarter.POSIXt |
| Replace Characters in Strings | ff_replace f_replace |
| Format Numeric Signs | ff_sign f_sign |
| Format State Names as Abbreviations | ff_state f_state |
| Format Text Based Bar Plots | ff_text_bar f_text_bar |
| Convert First Letter of Words to Title Case | ff_title f_title |
| Format Weekdays to One Letter Abbreviation | ff_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 Strings | ff_wrap f_wrap |
| Format Years | ff_year f_year f_year.Date f_year.hms f_year.numeric f_year.POSIXt |
| Convert a Numeric Vector to Number and Parenthetical Percentages | ffv_num_percent fv_num_percent |
| Convert a Numeric Vector to Percentages | ffv_percent fv_percent |
| Percent Difference | ffv_percent_diff ffv_percent_diff_fixed_relative fv_percent_diff fv_percent_diff_fixed_relative |
| Percent Difference | ffv_percent_lead ffv_percent_lead_fixed_relative fv_percent_lead fv_percent_lead_fixed_relative |
| Remove Subsequent Runs from a Vector | fv_runs |
| Highlight Cells | highlight_cells |
| Tools to Format Numbers for Publication | numform package-numform |
| Rounding | round2 round_any |
| Compute Digits Needed for Quarter Hour Time Vector | time_digits |
