search for: ccomplish

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

Did you mean: accomplish
2011 Jul 05
1
if else loop
Dear R help I was hoping you might be able to show me how to write a loop function take would ccomplish this task. library(prob) { a <- sample ( 1:20, 100, replace=T) b<-sample(5:24,100,replace=T) } dd <- data.frame(a,b) dd # code piece I am looking for if(subset(dd,c(1,23,ordered=F))is found))( print subset) else( continue evaluating subsets) subset(dd,isin(dd,c(1,23), ordered = FALSE)) s...