Saradachalampuri8 / CSA-1674-DATA-WAREHUSING

0 stars 0 forks source link

mean,median,mode,summary #2

Open Saradachalampuri8 opened 1 year ago

Saradachalampuri8 commented 1 year ago

ex 2 dw

Saradachalampuri8 commented 1 year ago

1.Mean: name<-c("Dain","Mouni","Mathew") age<-c(23,24,35) marks<-c(88,78,25) df<-data.frame(name,age,marks) mean(df$age) write.csv(df,"datafr.csv")

Median: name<-c("Dain","Mouni","Mathew") age<-c(23,24,35) marks<-c(88,78,25) df<-data.frame(name,age,marks) median(df$age) write.csv(df,"datafr.csv")

Mode: name<-c("Dain","Mouni","Mathew") age<-c(23,24,35) marks<-c(88,78,25) df<-data.frame(name,age,marks) Mode(df$age) write.csv(df,"datafr.csv")

Summary: name<-c("Dain","Mouni","Mathew") age<-c(23,24,35) marks<-c(88,78,25) df<-data.frame(name,age,marks) summary(df$age) write.csv(df,"datafr.csv")