# Carregar o conjunto de dados mtcars
dados <- mtcars
head(dados)
## mpg cyl disp hp drat wt qsec vs am gear carb
## Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
## Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
## Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
## Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
## Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
## Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1
# Ordenar os dados por mpg (milhas por galão) em ordem decrescente
dados <- dados[order(-dados$mpg), ]
# Filtrar carros com mais de 20 milhas por galão
dados_filtrados <- subset(dados, mpg > 20)
head(dados_filtrados)
## mpg cyl disp hp drat wt qsec vs am gear carb
## Toyota Corolla 33.9 4 71.1 65 4.22 1.835 19.90 1 1 4 1
## Fiat 128 32.4 4 78.7 66 4.08 2.200 19.47 1 1 4 1
## Honda Civic 30.4 4 75.7 52 4.93 1.615 18.52 1 1 4 2
## Lotus Europa 30.4 4 95.1 113 3.77 1.513 16.90 1 1 5 2
## Fiat X1-9 27.3 4 79.0 66 4.08 1.935 18.90 1 1 4 1
## Porsche 914-2 26.0 4 120.3 91 4.43 2.140 16.70 0 1 5 2
options(repos = c(CRAN = "https://cloud.r-project.org/"))
#instalar pacote DT
install.packages("DT")
## Installing package into 'C:/Users/Aldenir/AppData/Local/R/win-library/4.3'
## (as 'lib' is unspecified)
## package 'DT' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\Aldenir\AppData\Local\Temp\RtmpSqcAhd\downloaded_packages
# Carregar o pacote DT
library(DT)
# Criar a tabela interativa
tabela_interativa <- datatable(
dados,
options = list(
searching = TRUE,
ordering = TRUE,
paging = TRUE
)
)
tabela_interativa
Equação de Euler: \[ e^{i\pi} + 1 = 0 \]
Equação da Regressão Linear: \[ y = mx + b \]
Equação de Bernoulli: \[ p + q = 1 \]
Equação de Schrödinger: \[ i\hbar \frac{\partial \Psi}{\partial t} = H \Psi \]
Fórmula de Bayes: \[ P(A|B) = \frac{P(B|A)P(A)}{P(B)} \]
Primeira Figura:
Segunda Figura:
Doe, John. 2020. A Comprehensive Study of Machine Learning Algorithms. PhD thesis, University of XYZ.
Gatys, Leon A., Alexander S. Ecker, and Matthias Bethge. 2016. “Image Style Transfer Using Convolutional Neural Networks.” In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2414–23. IEEE.
Mitchell, William J. 2006. “The Discipline of Architecture.” ACADIA Quarterly 25 (4): 10–17.
“Python Programming Language.” n.d. https://www.python.org/.
Silver, Nate. 2020. The Signal and the Noise: Why so Many Predictions Fail–but Some Don’t. Penguin.