Open micresh opened 5 years ago
m.k28<-read.csv("D:/MA1.csv",sep = ",") m.k28 View(m.k28) m<-m.k28[["m"]] m<-c(1,2,3,4,5,0,-1,-2,-3,-4,-5) mean(m) m.first<-ifelse(m>mean(m),1,-1) m.first m.second<-ifelse(m.first<mean(m),-1,1) m.second m.third<-ifelse(m == mean(m),0,1) m.third m.fourth<-ifelse(m == mean(m),7,0) m.fourth summary(m) hist(m,probability = TRUE, col = "red")
lr1-rlab.pdf