Displaying 1 result from an estimated 1 matches for "tp2329538p2329538".
2010 Aug 18
5
ifelse command
...0),{y[i]<-2},
ifelse((x<=4/10),{y[i]<-3},
ifelse((x<=7/10),{y[i]<-4},
ifelse((x<=9/10),{y[i]<-5},{y[i]<-6})))))
}
bar<-barplot(table(y))
table<-table(y)
return(list(bar,table))
}
mydie2()
--
View this message in context: http://r.789695.n4.nabble.com/ifelse-command-tp2329538p2329538.html
Sent from the R help mailing list archive at Nabble.com.