1011 search results for "LaTeX"

Google, The Brew’s On Me

December 3, 2010
By
Google, The Brew’s On Me

While drinking these fine liquids may up your trip count to the john, they can also make your R reports better. Not because they allow you to reach your Ballmer Peak… but because each of these elixers is the direct result of brewing. Okay, I’m rea...

Read more »

pgfSweave 1.1.0 now on CRAN!

December 2, 2010
By

The next release of pgfSweave is now on CRAN! It has been a while since I posted about pgfSweave and there have been some significant changes in the past couple of months. The main new features are: Automatic code highlighting via the highlight package. This can be turned off with the highlight option. “Tidying” of

Read more »

R with Vim

December 2, 2010
By
R with Vim

For all those who think that Vim is The Editor for text files, and simultaneously think that R is The EnvironmentForStatisticalAnalysisAndGraphics. After trying out various options for intergrating Vim with R I settled on the following configuration: Use Vim-R-pluginfor editing R code files, R documentation files (*.Rd) as well as the Sweave files. Apart from

Read more »

Random variable generation (Pt 2 of 3)

December 2, 2010
By
Random variable generation (Pt 2 of 3)

Acceptance-rejection methods This post is based on chapter 1.4 of Advanced Markov Chain Monte Carlo. Another method of generating random variates from distributions is to use acceptance-rejection methods. Basically to generate a random number from , we generate a RN from an envelope distribution , where .  The acceptance-rejection algorithm is as follows: Repeat until

Read more »

Rd2roxygen: Convert Rd to roxygen documentation

December 1, 2010
By

must admit that I have been tired of maintaining my R packages for a long time, and the main reason is I feel really uncomfortable with writing R documentations (Rd). The required structure of an R package mainly includes two directories R and man — the former for the R source code (typically functions), and

Read more »

Le Monde puzzle [48]

December 1, 2010
By
Le Monde puzzle [48]

This week(end), the Le Monde puzzle can be (re)written as follows (even though it is presented as a graph problem): Given a square 327×327 symmetric matrix A, where each non-diagonal entry is in {1,2,3,4,5} and , does there exist a triplet (i,j,k) such that Solving this problem in R is very easy. We can create

Read more »

How to create PDF reports with R

December 1, 2010
By
How to create PDF reports with R

Sweave is a literate programming system included with R. It makes it possible to create a PDF document containing not just text, but also tables and charts generated from R. The process is automated, so once you've created an Sweave document (which includes both LaTeX text markup and R commands), you can create the formatted text and insert the...

Read more »

How to create PDF reports with R

December 1, 2010
By
How to create PDF reports with R

Sweave is a literate programming system included with R. It makes it possible to create a PDF document containing not just text, but also tables and charts generated from R. The process is automated, so once you've created an Sweave document (which includes both LaTeX text markup and R commands), you can create the formatted text and insert the...

Read more »

R Workflow: Slides from a Talk at Melbourne R Users (1st Dec 2010)

December 1, 2010
By

I gave a presentation at Melbourne R Userson the topic of R Workflow. The presentation covered R code organisation, and useful R related tools including Eclipse, StatET, Git, make, Sweave and LaTeX. Also, the slides from the presentation provide link...

Read more »

R Workflow: Slides from a Talk at Melbourne R Users (1st Dec 2010)

December 1, 2010
By

I gave a presentation at Melbourne R Userson the topic of R Workflow. The presentation covered R code organisation, and useful R related tools including Eclipse, StatET, Git, make, Sweave and LaTeX. Also, the slides from the presentation provide link...

Read more »