Open Saradachalampuri8 opened 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")