try: all(U > 0)
Best, Dimitris ---- Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm ----- Original Message ----- From: "Benjamin Dickgiesser" <[EMAIL PROTECTED]> To: <r-help@stat.math.ethz.ch> Sent: Wednesday, March 14, 2007 11:35 AM Subject: [R] abs(U) > 0 where U is a vector? > 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 > > ______________________________________________ > R-help@stat.math.ethz.ch 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. > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ______________________________________________ R-help@stat.math.ethz.ch 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.