https://www.dropbox.com/s/35w66sri5rauv5d/FlightDelays.csv?dl=0
I am reading a dataset from the above link which contains 2201 rows.using split function,i gave the ratio as 0.6.Then i should be getting two datasets conatining 1320 and 881 datasets respectively.Initally it was working fine,but now when i am splitting ,instead of 0.6 the split is happening for 0.53,Even though i specified 0.6 as my ratio in the split.what might be the issue for this sudden change.How to resolve this.Code is given below.
library(caTools)
originaldata.df<-read.csv("use csv from the link given above")
split<-sample.split(originaldata.df,SplitRatio = 0.6)
Trainingdataset<-subset(originaldata.df,split == "TRUE")
Testingdataset<-subset(originaldata.df,split == "FALSE")
ExpectedOutput:
1320(2201*60/100)
881(2201*40/100)
Actualoutput:
1186
1015