Publications by José María Durazo Durazo / A01251747

Market Basket Analisis

11.09.2022

a Inicio del codigo Para iniciar el codigo se asignó como variable el documento de ventas del supermercado con el nombre de: “bd” bd <- read.csv("C:\\Users\\chema\\Downloads\\ventas_correcto.csv") Analizar la base de datos Una vez la base de datos se ha importado, procedemos a entender los datos por medio de funciones como summary, tail ...

2352 sym R (353483 sym/45 pcs) 1 img

Walmart

11.09.2022

features <- read.csv("C:\\Users\\chema\\Documents\\Clase\\features.csv") stores <- read.csv("C:\\Users\\chema\\Documents\\Clase\\train.csv") test <- read.csv("C:\\Users\\chema\\Documents\\Clase\\test.csv") train <- read.csv("C:\\Users\\chema\\Documents\\Clase\\stores.csv") Instalar librerias library(dplyr) ## ## Attaching package: 'dplyr' #...

1867 sym R (18832 sym/52 pcs) 1 img

Comandos Basicos

21.09.2022

Asignación de variables x<-3 y<-2 Impresión de resultados x ## [1] 3 y ## [1] 2 Operaciones aritméticas suma <-x+y suma ## [1] 5 resta <-x-y resta ## [1] 1 multiplicacion <-x*y multiplicacion ## [1] 6 division <-x/y division ## [1] 1.5 division_entera <-x%/%y division_entera ## [1] 1 residuo <-x%%y residuo ## [1] 1 potencia <-x^2 pot...

1131 sym 2 img

Hospitales

22.09.2022

Importar base de datos de Hospital bdh <- read.csv("C:\\Users\\chema\\Downloads\\seguros (1).csv") summary(bdh) ## ClaimID TotalPaid TotalReserves TotalRecovery ## Min. : 777632 Min. : 0 Min. : 0 Min. : 0.00 ## 1st Qu.: 800748 1st Qu.: 83 1st Qu.: 0 1st Qu.: 0....

1902 sym R (3571830 sym/19 pcs) 1 img

Modelo Predictivo

22.09.2022

Importar base de datos library("janitor") ## ## Attaching package: 'janitor' ## The following objects are masked from 'package:stats': ## ## chisq.test, fisher.test bd <-read.csv("C:\\Users\\chema\\Downloads\\rentadebicis.csv") bd <- clean_names(bd) Entender la base de datos summary(bd) ## hora dia mes ...

1998 sym R (5763 sym/13 pcs) 2 img

Limpieza Abarrotes

22.09.2022

a Inicio bd <- read.csv("C:\\Users\\chema\\Downloads\\abarrotes.csv") Entender la base de datos summary(bd) ## vcClaveTienda DescGiro Codigo.Barras PLU ## Length:200625 Length:200625 Min. :8.347e+05 Min. : 1.00 ## Class :character Class :character 1st Qu.:7.501e+12 1st Qu.: 1.00 ...

1233 sym R (41958 sym/53 pcs) 3 img

Titanic

22.09.2022

Importar dase de datos base_de_datos <- read.csv("C:\\Users\\chema\\Downloads\\titanic.csv") Entender base de datos summary(base_de_datos) ## pclass survived name sex ## Min. :1.000 Min. :0.000 Length:1309 Length:1309 ## 1st Qu.:2.000 1st Qu.:0.000 Class :character Cla...

814 sym R (3826 sym/12 pcs) 3 img

Cancer

22.09.2022

Inicio bd <- read.csv("C:\\Users\\chema\\Downloads\\cancer_de_mama.csv") library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library("janitor") ## ## Attachi...

318 sym R (5921 sym/16 pcs) 3 img

Banco Mundial

22.09.2022

#Informacion del pais library(wbstats) gdp_data <- wb_data(country = "MX", indicator ="NY.GDP.PCAP.CD", start_date = 1973, end_date = 2022) summary(gdp_data) ## iso2c iso3c country date ## Length:49 Length:49 Length:49 Min. :1973 ## Class :character Class :cha...

618 sym R (3475 sym/10 pcs) 5 img

Jingle Bells

22.09.2022

Inicio #install.packages("devtools") devtools::install_github("keithmcnulty/Rmusic", build_vignettes = TRUE) ## WARNING: Rtools is required to build R packages, but is not currently installed. ## ## Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/. ## ...

333 sym Python (2531 sym/8 pcs) 1 img