Hi All,

I need some help with the package 'isotone'? I have a big matrix (long) and
I want to apply 'lsSolver' possibly with 'activeSet' to each row of the
matrix. The plan is to use function 'apply',  I tried several ways, but
didn't work. Not sure if the FUN is activeSet or lsSolver.

If I use the loop, then it works, but very slow.

for (i in 1:N) {
   x.iso[i,] <- activeSet(A,lsSolver,weights=rep(1,n),y=x[i,])$x
 }
Can someone help me with this?

Thanks,

Annie

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to