[R] Problem with

Sarah Goslee sarah.goslee at gmail.com
Fri Nov 9 20:03:44 CET 2012


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




More information about the R-help mailing list