O RMarkdown é uma parte do R que permite a formatação de textos. Uma de suaS vantagens é que este programa permite a inserção de ;
GRÁFICOS
FIGURAS
TABELAS
SOBRESCRITO
5.SUBSCRITO
CÓDIGOS DO R
CITAÇÕES
O Rmarkdown tambem permite a inserção de Links Assim como imagens do
computador ou da internet tambem podem ser inseridas
No RMarkdown é possivel criar listas ordenadas ou sem ordenação.
Título 1
Subtítulo
Subitem A
Subitem B
Subitem c
A estrutura do RMarkdown pode ser configurada para exibir
codigos do _R_
library(readr)
library(lubridate)
library(tidyverse)
library(kableExtra)
library(foreign)
knitr::opts_chunk$set(echo = TRUE)
dados <-
read.dbf(file.choose())
dengue <-
dados |>
filter(ID_AGRAVO =="A90") |>
mutate(DT_SIN_PRI = ymd(DT_SIN_PRI),
sem_epi = epiweek(DT_SIN_PRI),
ano_epi = epiyear(DT_SIN_PRI),
mes = month(DT_SIN_PRI))
glimpse(dengue)
## Rows: 12,781
## Columns: 65
## $ NU_NOTIFIC <fct> 3282723, 7275624, 8247726, 3286227, 6680424, 0179650, 23293…
## $ TP_NOT <int> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,…
## $ ID_AGRAVO <fct> A90, A90, A90, A90, A90, A90, A90, A90, A90, A90, A90, A90,…
## $ CS_SUSPEIT <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ IN_AIDS <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CS_MENING <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ DT_NOTIFIC <date> 2008-04-14, 2008-02-12, 2007-12-14, 2008-04-24, 2008-05-15…
## $ SEM_NOT <fct> 200816, 200807, 200750, 200817, 200820, 201115, 200818, 200…
## $ NU_ANO <int> 2008, 2008, 2007, 2008, 2008, 2011, 2008, 2008, 2011, 2007,…
## $ SG_UF_NOT <int> 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,…
## $ ID_MUNICIP <int> 610213, 610213, 610213, 610213, 610213, 610213, 610213, 610…
## $ ID_REGIONA <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ ID_UNIDADE <int> 180142, 570404, 319816, 139803, 316380, 289828, 480722, 289…
## $ DT_SIN_PRI <date> 2008-04-11, 2008-02-06, 2007-12-03, 2008-04-23, 2008-04-21…
## $ SEM_PRI <fct> 200815, 200806, 200749, 200817, 200817, 201115, 200816, 200…
## $ DT_NASC <date> 1928-05-29, 1953-08-01, 1975-10-20, 2000-10-28, NA, 1990-1…
## $ NU_IDADE_N <int> 4079, 4054, 4032, 4037, 4004, 4020, 4001, 4010, 4021, 4037,…
## $ CS_SEXO <fct> F, F, F, F, M, M, M, M, F, F, F, M, F, F, M, M, F, F, M, M,…
## $ CS_GESTANT <int> 9, 9, 9, 6, 6, 6, 6, 6, 9, 9, 9, 6, 6, 9, 6, 6, 6, 9, 6, 6,…
## $ CS_RACA <int> 4, 9, NA, 9, NA, 9, NA, NA, 9, 1, 9, 9, 9, NA, NA, 9, 9, 4,…
## $ CS_ESCOL_N <fct> 02, 09, NA, 09, 10, 09, 10, NA, 09, 03, 05, 09, 09, NA, NA,…
## $ SG_UF <int> 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,…
## $ ID_MN_RESI <int> 610213, 610213, 610213, 610213, 610213, 610213, 610213, 610…
## $ ID_RG_RESI <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ ID_DISTRIT <fct> 01, 04, 05, 01, 01, 05, 04, 05, 03, 01, 02, 01, 01, 04, 01,…
## $ ID_BAIRRO <fct> 001, 014, 020, 003, 003, 020, 016, 019, 009, 001, 006, 002,…
## $ ID_LOGRADO <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ ID_GEO1 <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ ID_GEO2 <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CS_ZONA <int> 1, 1, 1, 1, 1, 1, NA, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, NA, …
## $ ID_PAIS <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
## $ NDUPLIC_N <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ IN_VINCULA <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ DT_INVEST <date> 2008-04-14, NA, NA, 2008-04-24, NA, 2011-04-19, NA, NA, 20…
## $ ID_OCUPA_N <fct> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CLASSI_FIN <int> 5, 8, 8, 1, 8, 1, 8, 8, 1, 1, 8, 8, 8, 8, 8, 2, 1, 8, 8, 8,…
## $ CRITERIO <int> 1, NA, NA, 2, NA, 1, NA, NA, 2, 2, NA, NA, NA, NA, NA, 2, 2…
## $ TPAUTOCTO <int> NA, NA, NA, 1, NA, 1, NA, NA, NA, 1, NA, NA, NA, NA, NA, 1,…
## $ COUFINF <int> NA, NA, NA, 61, NA, 61, NA, NA, NA, 61, NA, NA, NA, NA, NA,…
## $ COPAISINF <int> 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,…
## $ COMUNINF <int> NA, NA, NA, 610213, NA, 610213, NA, NA, NA, 610213, NA, NA,…
## $ CODISINF <fct> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CO_BAINFC <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0…
## $ NOBAIINF <fct> NA, NA, NA, NA, NA, NA, NA, NA, NA, Jabuticabeira, NA, NA, …
## $ DOENCA_TRA <int> NA, NA, NA, NA, NA, NA, NA, NA, NA, 2, NA, NA, NA, NA, NA, …
## $ EVOLUCAO <int> NA, NA, NA, 1, NA, 1, NA, NA, NA, 1, NA, NA, NA, NA, NA, 1,…
## $ DT_OBITO <date> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ DT_ENCERRA <date> 2008-06-19, 2008-04-14, 2008-08-05, 2008-07-10, 2008-12-02…
## $ DT_DIGITA <date> 2008-04-24, 2008-02-26, 2008-08-01, 2008-05-15, 2008-11-27…
## $ DT_TRANSUS <date> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ DT_TRANSDM <date> NA, NA, NA, 2008-07-10, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ DT_TRANSSM <date> 2010-11-16, 2010-11-16, 2010-11-16, 2010-11-16, 2010-11-16…
## $ DT_TRANSRM <date> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ DT_TRANSRS <date> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ DT_TRANSSE <date> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
## $ NU_LOTE_V <fct> 2010044, 2010043, 2010043, 2010044, 2010041, 2011033, 20100…
## $ NU_LOTE_H <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CS_FLXRET <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
## $ FLXRECEBI <int> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,…
## $ MIGRADO_W <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CO_USUCAD <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ CO_USUALT <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA,…
## $ sem_epi <dbl> 15, 6, 49, 17, 17, 15, 16, 15, 9, 10, 10, 13, 4, 13, 15, 12…
## $ ano_epi <dbl> 2008, 2008, 2007, 2008, 2008, 2011, 2008, 2008, 2011, 2007,…
## $ mes <dbl> 4, 2, 12, 4, 4, 4, 4, 4, 3, 3, 3, 3, 1, 3, 4, 3, 3, 4, 4, 1…
Notas de rodapé
Esta informações estão em links do YouTube 1.
Canais dedicados a Pratica de dados e estatística geralmente incluen RMarkdown↩︎