-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
version 0.5
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^\.github$ | ||
^codecov\.yml$ |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ janitor::as_tabyl | |
|
||
|
||
|
||
|
||
utils::globalVariables(c("where", "median", "sd", "n", "setNames")) | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tab = function(obj, var1, var2) { | ||
obj %>% | ||
dplyr::group_by({{ var1 }}, {{ var2 }}) %>% | ||
dplyr::summarise(n = dplyr::n()) %>% | ||
tidyr::spread({{ var2 }}, n) | ||
|
||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
comment: false | ||
|
||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 1% | ||
informational: true | ||
patch: | ||
default: | ||
target: auto | ||
threshold: 1% | ||
informational: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
\newpage |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: "title" | ||
author: "author" | ||
abstract: "abstract" | ||
header-includes: | ||
- \usepackage[brazil]{babel} | ||
- \usepackage{bm} | ||
- \usepackage{float} | ||
geometry: left=1.7cm, right=1.7cm, top=3cm, bottom=3cm | ||
output: | ||
bookdown::pdf_document2: | ||
includes: | ||
before_body: beforebody.tex | ||
editor_options: | ||
chunk_output_type: console | ||
indent: true | ||
toc: True | ||
bibliography: bib.bib | ||
csl: style.csl | ||
nocite: '@*' | ||
link-citations: true | ||
--- | ||
|
||
\clearpage | ||
\tableofcontents | ||
|
||
```{r setup,include=F} | ||
options(digits=3) #Arrendodamento | ||
options(scipen=999) | ||
ggplot2::theme_set(ggplot2::theme_minimal()) #Tema dos gráficos produzidos no ggplot2 | ||
knitr::opts_chunk$set(echo=F,message=F,warning=F,fig.pos = 'H',fig.align = 'center',fig.width=7.8, fig.height=4) | ||
scale_fill_discrete = \(...) ggplot2::scale_fill_brewer(... , palette="Set2") #Fixa a scale do fill dos gráficos do ggplot2 | ||
``` | ||
|
||
|
||
\section{Section name} | ||
```{r } | ||
#R code | ||
iris |> | ||
mypdf1::pdf1_summary() | ||
``` | ||
```{r crftable} | ||
iris |> | ||
mypdf1::pdf1_tbl_freq(Species) |> | ||
mypdf1::pdf1_tbl("You can combine this function too!") | ||
``` | ||
You cross-reference tables like this: Table \@ref(tab:crftable) | ||
|
||
```{r crfgraph, fig.cap = "fig name"} | ||
plot(rnorm(500)) | ||
``` | ||
|
||
You cross-reference figures like this: Figure \@ref(fig:crfgraph) | ||
|
||
|
||
# Bibliography | ||
|
||
```{r} | ||
``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: pdf1-paper | ||
description: > | ||
Rmarkdown template for writing pdf reports using Latex syntax. | ||
create_dir: false |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.