Uma introdução à análise de dados políticos e sociais usando R

Autor

Janderson Batista Abreu

1 Quarto

1.1 Este e um subtopico

1.2 Este e outro subtopico

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

2 Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

1 + 1
[1] 2

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).

3 Montando o dataset

data_trabalho <- data.frame(
  Nome <- c('João','Maria','Jose'),
  Cargo <- c('Gerente','Analista','Assistente'),
  Salario <- c(7000,5500,2800)
)

4 Realizando operações no dataset:

# Media salarial
media_salarial <- mean(data_trabalho$Salario)
media_salarial
[1] 5100

5 Exibindo formulas matematicas com LaTex:

\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)