Multiple Assignments or the Idiosyncrasies of R and SAS

Working on top of someone else’s code at work a couple of weeks ago I stumbled upon a piece of SAS code that went like this: View Code SAS1 2 3 length check 3; ... check = Name = 'Netter' Being raised in the land of open-source and having programmed in R since I was in college, that struck me...

LaTeX musings: Avoid eqnarray!?

Today while googling about producing mathematical graphics in LaTeX for the reedition of my Math Handbook, I stumbled upon a page on TUG pointing to an article named Avoid eqnarray!. The article goes on to discuss why it’s a bad idea ™ to use the eqnarray environment (and it’s natural...

South Park musings

I have been a regular South Park watcher since the beginnings of the show back in 1997. Just before the first episode, aired on August 13, I remember it being depicted on Folha de São Paulo (Brazil’s largest circulation newspaper) as the next “Beavis and Butthead” – but it ended...

Sweave Syntax Highlighting in vim

If you use Sweave and vim, you might have wondered if it’s possible to have it syntax highlight Rnw/Snw files properly : the latex bits with LaTeX syntax and the noweb R chunks with R syntax. It is! Take a look a the screenshot below: In order to have this working, you only need to properly configure...

R Screenshot and Fan Photo

Personal website

R-Project: Translation Status

Introduction This page was originally set up to shows statistics of the current status of the translation of messages for the R-project. The statistics can be generated with a Perl script that wrote for this: rt_status.pl I had put this info here in order to help the Translation Teams coordinate efforts and...

Creating shaded areas in R

Sometimes we want to shade areas under a density on a graphic, for instance to illustrate a p-value or a region under the normal curve. Using the polygon() function from base R we can make graphics like the following one: How to do it First we have to plot the graphic of the function whose areas we are going...

Flashcards in LaTeX

Vocabulary learning is an essential part of learning a new language, and also a tough exercise for your memory. In order to make this task easier, you should devise some techniques for helping you through memorizing new words and concepts. One usual device is vocabulary flashcards, which are two-sided cards...

vqf2ogg converter

History Some years ago, when mp3 was emerging as a popular audio format, there were also some other audio formats being developed. One of the most promising of them back then was the VQF, or SoundVQ, by Yamaha. It had better compression rates and better quality than mp3 files. A VQF with a 80 kbps bitrate...

Next Entries »