Pacote em R com funções utilizadas nos relatórios da consultoria estatística SOS Estatística
Você pode instalar via GitHub usando:
# install.packages("devtools")
devtools::install_github("gabrielfranco89/sosestatistica")
Algumas funções úteis que vem com o pacote, como a fancytable
:
library(magrittr)
library(knitr)
library(sosestatistica)
#> Registered S3 method overwritten by 'rvest':
#> method from
#> read_xml.response xml2
my_tab <- table(iris$Species, iris$Sepal.Length>5)
fancytable(my_tab) %>% kable()
| | FALSE | TRUE | | ---------- | :------- | :------- | | setosa | 28 (56%) | 22 (44%) | | versicolor | 3 (6%) | 47 (94%) | | virginica | 1 (2%) | 49 (98%) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.