Message-ID: <CAM_vju=nQr9Rv6_b31+0s+rEYOSqUtsqRaboQaszuTBctsCFYg@mail.gmail.com>
Date: 2012-11-09T19:03:44Z
From: Sarah Goslee
Subject: Problem with
In-Reply-To: <1352483629576-4649084.post@n4.nabble.com>
And your problem is?
Please note that the test for equality is == while the preferred
assignment operator is <-
Beyond that, some statement of what you're trying to accomplish and an
actual executable example would be useful.
Sarah
On Fri, Nov 9, 2012 at 12:53 PM, Haszun <crazystef13 at tlen.pl> wrote:
> *
> ilecyfr=function(x){
> if (x=0){
> return(1)
> } else {
> k=0
> while (abs(x)/10^k >1) {
> k=k+1
> } return(k)
> }}
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Problem-with-tp4649082p4649084.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
--
Sarah Goslee
http://www.stringpage.com
http://www.sarahgoslee.com
http://www.functionaldiversity.org