search for: cluster_q

Displaying 1 result from an estimated 1 matches for "cluster_q".

2005 Dec 13
2
creating a subset of a dataset using ifelse statement?
...If h > 0, I want to set create a dataset mp2, where I limit the original dataset to those where mp1b$group = =h. similar to: “mp2<-subset (mp1b, group= = h)” I have tried this ifelse statement, but it does not seem to work as expected. “mp2<-ifelse(h<1,mp1b,subset(mp1b,cluster_q==h))” Assistance is appreciated. --------------------------------- [[alternative HTML version deleted]]