Monthly Archives: May 2012

Quick Tip: Replace Values in Dataframe on Condition with Random Numbers

May 1, 2012
By

This one took me some time - though, in fact it is plain simple:> options(scipen=999)> (my_df X1 X2 X3 X4 X5 X6 X7 X8 X9 X101 0 0 1 0 1 1 1 1 0 12 0 0 1 ...

Read more »

What does this package look like?

May 1, 2012
By
What does this package look like?

In this post, I give a very simple trick to understand the way a package is organized, which functions are included in and how these functions depend from each others. The idea has been brought by one of my student, Soraya, who is currently working in a very hostile environment, surrounded by true geeks. However,

Read more »

A Warning About warning()

May 1, 2012
By

Avoid R’s warning feature. This is particularly important if you use R in production; when you regularly run R scripts as part of your business process. This is also important if you author R packages. Don’t issue warnings in your own co...

Read more »

Monitoring some statistics with "R"

May 1, 2012
By
Monitoring some statistics with "R"

I´ve been practicing after reading a couple of tutorials:R: A self-learn tutorialProgramming in Rto create a basic function  to monitor some  basic statistics as RMSEP, Bias, SEP, Correlation and RSQ. I´ve been doing this with other so...

Read more »

How to Make HTML5 Slides with knitr

May 1, 2012
By
How to Make HTML5 Slides with knitr

One week ago I made an early announcement about the markdown support in the knitr package and RStudio, and now the version 0.5 of knitr is on CRAN, so I'm back to show you how I made the HTML5 slides. For those who are not familiar with markdown, you m...

Read more »