Add files via upload

This commit is contained in:
Linly
2021-12-18 21:38:46 +02:00
committed by GitHub
parent 79e72b7e8e
commit a127152c9d
4 changed files with 9862 additions and 0 deletions

13
Data.R Normal file
View File

@@ -0,0 +1,13 @@
library(readxl)
#grocery_entries <- read.csv(file.choose())
grocery_entries <- read_excel("~/College/Data Science/Project/grc.xlsx")
cash_credit <- cbind(grocery_entries[3], grocery_entries[8])
#
#sum_cash <-sum(cash_credit[which(cash_credit$paymentType=='Cash'),1])
#sum_credit <-sum(cash_credit[which(cash_credit$paymentType=='Credit'),1])
CompCashCredit <- c(sum_cash,sum_credit)
#please visualise the data I am lazy - Sewelam
ages <- cbind(grocery_entries[6] , grocery_entries[3])
sum_ages <- aggregate(total ~ age,ages,sum)
#First Github Commitment! 2