items Sale ================ GitHub Documents ---------------- This is an R Markdown format used for publishing markdown documents to GitHub. When you click the **Knit** button all R code chunks are run and a markdown file (.md) suitable for publishing to GitHub is generated. Including Code -------------- You can include R code in the document as follows: ``` r newData<-read.csv(file = "/home/sushil/Desktop/myWork/PVR/FNB/FNBTransactions1.csv",sep=",") dat<-newData %>% select(total) dat<-dat %>% mutate(totalBill=total) #sampleData newData<-read.csv(file = "/home/sushil/Desktop/myWork/PVR/FNB/fnbDummy.csv",sep=",") dat<-newData %>% select(totalBill) km<-kmeans(dat,3) dat$cluster<-as.character(km$cluster) convertTable<-table(km$cluster,dat$totalBill) plot(dat$totalBill,col=km$cluster) points(km$centers, col = 1:2, pch = 10, cex = 2) ``` ![](clusterDemo_files/figure-markdown_github/cars-1.png) Including Plots ---------------