Description Usage Arguments Functions Examples
Create html table
1 2 3 | cdc_datatable_html(data)
cdc_cut_integer(data, variable, number_cuts = 4, end_string = "_cut")
|
data |
input dataset |
variable |
variable a usar |
number_cuts |
numbers of cuts |
cdc_datatable_html
:
cdc_cut_integer
: similar to Hmisc::cut2 (https://stackoverflow.com/a/28075632/6702544)
1 2 3 4 5 6 7 8 9 | library(tidyverse)
mtcars %>%
as_tibble() %>%
cdc_cut_integer(qsec,3) %>%
count(qsec_cut)
iris %>%
group_by(Species) %>%
summarise_all(.funs = mean) %>%
cdc_datatable_html()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.