Dain1234 / CSA1674-DWDM

0 stars 0 forks source link

Experiment 2(Mean,Median,Mode,Summary) #2

Open Dain1234 opened 1 year ago

Dain1234 commented 1 year ago

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")

Dain1234 commented 1 year ago

WhatsApp Image 2023-02-02 at 1 45 57 PM