-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfmtr-helpers.Rmd
More file actions
38 lines (32 loc) · 1.04 KB
/
Copy pathfmtr-helpers.Rmd
File metadata and controls
38 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: "Helper Functions"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Helper Functions}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
### Formatting Helper Functions
The **fmtr** package also contains several formatting helper functions. These
functions help with common formatting styles seen in statistical reports.
For example, a range from 1 to 10 is commonly displayed as "1 - 10", with a
hyphen separating the minimum from the maximum. To accomplish this formatting
easily, the package provides a `fmt_range()` function that both calculates
the range and formats it in the desired manner.
Below is a complete list of the formatting helper functions. See the help
documentation for additional details:
* `fmt_range()`
* `fmt_n()`
* `fmt_quantile_range()`
* `fmt_median()`
* `fmt_cnt_pct()`
* `fmt_mean_sd()`
* `fmt_mean_stderr()`
Next: [Complete Example](fmtr-example1.html)