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 <crazyste...@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@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 ______________________________________________ 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.