The following simple code can be used to find roots of functions (based on the secant algorithm), secant=function(fun, x0, x1, tolerence=1e-07, niter=500){for ( i in 1:niter ) { x2 <- x1-fun(x1)*(x1-x0)/(fun(x1)-fun(x0)) if (abs(fun(x2)) < to...

R news and tutorials contributed by (552) R bloggers

I'll be hosting a webinar tomorrow (Wednesday) aimed at R users who want to know more about how Revolution R Enterprise extends open source R for big data, Web services, multi-core processing, debugging and more. For R users at schools and universities, I'll also explain how you can download and use Revolution R Enterprise free of charge. The full...

I'll be hosting a webinar tomorrow (Wednesday) aimed at R users who want to know more about how Revolution R Enterprise extends open source R for big data, Web services, multi-core processing, debugging and more. For R users at schools and universities, I'll also explain how you can download and use Revolution R Enterprise free of charge. The full...

R evangelist David Smith, marketing VP at Revolution R, will be giving a webinar showing off some of the finer features of Revolution R Enterprise - an integrated development environment (IDE) for R that has an enhanced script editor with syntax highli...

Here is a quick-and-dirty solution to Le Monde puzzle posted a few days ago: the R code counts the number of winning tickets between 1 and N, and stops when there is a proportion of 10% of winning tickets. #winning ticket win=function(n){ #decimal digits decomposition x=rep(0,4) x=n%%10 m=(n-x)/10 x=m%%10 m=(m-x)/10 x=m%%10 m=(m-x)/10 x=m%%10 tic=0 for

I pushed highlight 0.2-5 on CRAN. This release improves the latex renderer and the sweave driver so that multiple lines character strings are properly rendered. This example vignette shows it: \documentclass{report} \begin{document} <<echo=FALSE,results=hide>>= old.op <- options( prompt = " ", continue = " " ) @ <<>>= require( inline ) require( Rcpp ) convolve <- cxxfunction( signature( a = "numeric", b...

The next update to R will be a patch release: R 2.12.1 will be released on December 16, as announced today by the R Core Team. As is typical for a patch release, this version will include some minor bug fixes plus a few new features (from the current build's NEWS file): The DVI/PDF reference manual now includes the...