Publications by Karen Neri - A01657974
Market Basket Abarrotes
Base de datos bd_limpia <- read.csv("/Users/Karen/Documents/abarrotes_bd_limpia.csv") Market Basket Analysis #install.packages("plyr") library(plyr) #installed.packages("Matrix") library(Matrix) #install.packages ("arules") library(arules) ## ## Attaching package: 'arules' ## The following objects are masked from 'package:base': ## ## ab...
6178 sym R (27114 sym/23 pcs) 1 img
Market Basket Supermercado (ventas)
#A la base de datos se separaron las columnas de fecha y hora en Excel #Se cambio el formato a hora (MX) #Se guardo como CSV utf 8 (Delimitado por comas) Importar la base de datos bd <- read.csv("/Users/Karen/Downloads/ventas.csv") Entender la base de datos summary (bd) ## BillNo Itemname Quantity Date ...
8212 sym R (358698 sym/74 pcs) 1 img
Clusters Supermercado (ventas)
Importar la base de datos bd12<-read.csv("/Users/Karen/Downloads/datos_clientes.csv") #Agregar el CustomerID como nombre de los renglones bd13<-bd12 rownames(bd13)<- bd13$CustomerID #Eliminar la columna de CustomerID bd14<-bd13 bd14<-subset(bd14, select = -c (CustomerID)) Revisar presencia de datos anormales summary(bd14) ## Total ...
7816 sym R (51757 sym/27 pcs) 6 img
Comandos Básicos
Símbolos ^ ~ 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]...
4767 sym 3 img
Caso Walmart
Importar bases de datos stores <- read.csv("/Users/Karen/Documents/stores.csv") features <- read.csv("/Users/Karen/Documents/features (1).csv") train <- read.csv("/Users/Karen/Documents/train.csv") test <- read.csv("/Users/Karen/Documents/test.csv") Instalar paquetes y llamar librerias #install.packages("dplyr") library(dplyr) ## ## Attaching...
11182 sym R (17360 sym/47 pcs) 2 img
Clima
Información del Automated Surface Observing System (ASOS) #Instalar paquetes y llamar librerias #install.packages ("riem") library (riem) #install.packages ("tidyverse") library (tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyvers...
3794 sym Python (11765 sym/17 pcs) 3 img
FORM Performance
Importar base de datos #Cambios previos en Excel: Se traspuso la base de datos de forma vertical #file.choose() performance <- read.csv("/Users/Karen/Downloads/FORM - Delivery Performance.csv") Importar librerias #install.packages("foreign") library(foreign) #install.packages("dplyr") library(dplyr) # data manipulation #install.package...
3754 sym R (13055 sym/31 pcs) 8 img 9 tbl
FORM Performance 2.3
Importar base de datos #Se limpio la base previamente #file.choose() performance <- read.csv("/Users/Karen/Documents/FORM.Performance.limpia") Importar librerias #install.packages("foreign") library(foreign) #install.packages("dplyr") library(dplyr) # data manipulation ## ## Attaching package: 'dplyr' ## The following objects are mask...
1292 sym R (9518 sym/58 pcs) 7 img 7 tbl
FORM Merma
Importar base de datos #file.choose() merma <- read.csv("/Users/Karen/Downloads/FORM - Merma.csv") Importar librerias 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...
1454 sym R (47965 sym/59 pcs) 6 img 9 tbl
FORM Scrap
Importar base de datos #file.choose() scrap <- read.csv("/Users/Karen/Downloads/FORM - Scrap.csv") Importar librerias 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...
996 sym R (300941 sym/60 pcs) 7 img 9 tbl