R/NewBinseqWrap.R

Defines functions NewBinseqWrap

Documented in NewBinseqWrap

NewBinseqWrap <-
function(n,PossibleCoefs){

NewBinseq<-function(n,v=c(),PossibleCoefs){
if(n==0){
cat(v,"\n")
return()
} else {
for(i in 1:length(PossibleCoefs[[n]])){
NewBinseq(n-1,v=c(v,PossibleCoefs[[n]][i]),PossibleCoefs)
}
}
}
L=capture.output(NewBinseq(n,v=c(),PossibleCoefs))
L=strsplit(L," ")
L=lapply(L,as.numeric)
return(L)}

Try the PathSelectMP package in your browser

Any scripts or data that you put into this service are public.

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.