Test

Quarto

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

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).

library(ggplot2)
Warning: package 'ggplot2' was built under R version 4.4.1
ggplot(mtcars, aes(x = wt, y = mpg)) +
  geom_point() +
  labs(title = "Scatter Plot of wt vs mpg",
       x = "Weight (1000 lbs)",
       y = "Miles per Gallon")

library("readr")
Warning: package 'readr' was built under R version 4.4.1
library("DT")
Warning: package 'DT' was built under R version 4.4.1
library("ggplot2")
library("dplyr")

Adjuntando el paquete: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
library("VIM")
Warning: package 'VIM' was built under R version 4.4.1
Cargando paquete requerido: colorspace
Warning: package 'colorspace' was built under R version 4.4.1
Cargando paquete requerido: grid
VIM is ready to use.
Suggestions and bug-reports can be submitted at: https://github.com/statistikat/VIM/issues

Adjuntando el paquete: 'VIM'
The following object is masked from 'package:datasets':

    sleep
library("naniar")
Warning: package 'naniar' was built under R version 4.4.1
library("minqa")
Warning: package 'minqa' was built under R version 4.4.1
library("mice")
Warning: package 'mice' was built under R version 4.4.1

Adjuntando el paquete: 'mice'
The following object is masked from 'package:stats':

    filter
The following objects are masked from 'package:base':

    cbind, rbind
library("tidyverse")
Warning: package 'tidyverse' was built under R version 4.4.1
Warning: package 'forcats' was built under R version 4.4.1
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ lubridate 1.9.3     ✔ tibble    3.2.1
✔ purrr     1.0.2     ✔ tidyr     1.3.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ mice::filter() masks dplyr::filter(), stats::filter()
✖ dplyr::lag()   masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library("hrbrthemes")
Warning: package 'hrbrthemes' was built under R version 4.4.1
library("gridExtra")
Warning: package 'gridExtra' was built under R version 4.4.1

Adjuntando el paquete: 'gridExtra'

The following object is masked from 'package:dplyr':

    combine
library("missForest")
Warning: package 'missForest' was built under R version 4.4.1

Adjuntando el paquete: 'missForest'

The following object is masked from 'package:VIM':

    nrmse
library("outliers")
library("EnvStats")
Warning: package 'EnvStats' was built under R version 4.4.1

Adjuntando el paquete: 'EnvStats'

The following objects are masked from 'package:stats':

    predict, predict.lm
library("sf")
Warning: package 'sf' was built under R version 4.4.1
Linking to GEOS 3.12.1, GDAL 3.8.4, PROJ 9.3.1; sf_use_s2() is TRUE
library("leaflet")
Warning: package 'leaflet' was built under R version 4.4.1
library("stringr")
library(readr)
Accidentalidad_en_Barranquilla_20240901 <- read_csv("C:/Users/Apps/Downloads/Accidentalidad_en_Barranquilla_20240901.csv")
Rows: 25610 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr  (6): HORA_ACCIDENTE, GRAVEDAD_ACCIDENTE, CLASE_ACCIDENTE, SITIO_EXACTO_...
dbl  (4): CANT_HERIDOS_EN _SITIO_ACCIDENTE, CANT_MUERTOS_EN _SITIO_ACCIDENTE...
dttm (1): FECHA_ACCIDENTE

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.