Thx for all your responses!

while(all(abs(U) > 0))
{
..
}

was what I am looking for.

On 3/14/07, Benjamin Dickgiesser <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am looking for a way to compare if every element of a vector is > 0.
>
> i.e.
> while(abs(U) > 0)
> {
>
> ..
> }
>
> is there a function for this or do I have to write one?
>
> I'd appreciate your help!
>
> Benjamin
>

______________________________________________
[email protected] 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