Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Dec 22, 2016
1 parent 7667f35 commit eb1bba4
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output:
---

```{r, echo=FALSE}
pacman::p_load(numform)
pacman::p_load(numform, xtable, wakefield)
rinline <- function(code) {
sprintf('<code class="r">``` `r %s` ```</code>', code)
}
Expand Down Expand Up @@ -42,6 +42,18 @@ You are welcome to:
* send a pull request on: <https://github.com/trinker/numform>
* compose a friendly e-mail to: <tyler.rinker@gmail.com>

# Available Functions

Below is a table of available **numform** functions. Note that `f_` is read as "format" whereas `fv_` is read as "format vector". The former formats individual values in the vector while the latter uses the vector to compute a calculation on each of the values and then formats them.


```{r, results='asis', echo=FALSE, comment=NA, warning=FALSE, htmlcap="Available Formatting Functions"}
wakefield:::variables_as_matrix(p_funs(numform)) %>%
xtable::xtable() %>%
print(type = 'html', include.colnames = FALSE, include.rownames = FALSE,
html.table.attributes = '')
```


# Demonstration

Expand Down
95 changes: 95 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Table of Contents

- [[Installation](#installation)](#[installation](#installation))
- [[Contact](#contact)](#[contact](#contact))
- [[Available Functions](#available-functions)](#[available-functions](#available-functions))
- [[Demonstration](#demonstration)](#[demonstration](#demonstration))
- [[Load Packages](#load-packages)](#[load-packages](#load-packages))
- [[Numbers](#numbers)](#[numbers](#numbers))
Expand Down Expand Up @@ -51,6 +52,100 @@ You are welcome to:
* compose a friendly e-mail to: <tyler.rinker@gmail.com>


Available Functions
===================

Below is a table of available **numform** functions. Note that `f_` is
read as "format" whereas `fv_` is read as "format vector". The former
formats individual values in the vector while the latter uses the vector
to compute a calculation on each of the values and then formats them.

<!-- html table generated in R 3.3.2 by xtable 1.8-2 package -->
<!-- Thu Dec 22 10:40:32 2016 -->
<table>
<tr>
<td>
f_affix
</td>
<td>
f_mills
</td>
<td>
f_parenthesis
</td>
<td>
f_sign
</td>
<td>
fv_percent
</td>
</tr>
<tr>
<td>
f_bills
</td>
<td>
f_month
</td>
<td>
f_percent
</td>
<td>
f_suffix
</td>
<td>
fv_percent_diff
</td>
</tr>
<tr>
<td>
f_comma
</td>
<td>
f_num
</td>
<td>
f_prefix
</td>
<td>
f_thous
</td>
<td>
</td>
</tr>
<tr>
<td>
f_dollar
</td>
<td>
f_num_percent
</td>
<td>
f_prop2percent
</td>
<td>
f_weekday
</td>
<td>
</td>
</tr>
<tr>
<td>
f_mean_sd
</td>
<td>
f_ordinal
</td>
<td>
f_pval
</td>
<td>
fv_num_percent
</td>
<td>
</td>
</tr>
</table>
Demonstration
=============

Expand Down

0 comments on commit eb1bba4

Please sign in to comment.