R

Blogs on the R software.

Finally, Four Backticks on Github

Finally, Four Backticks on Github

It is always the little things… Over the years, I have been totally happy with almost everything about Github, but I have also been waiting for one little thing: I wish we could enclose text that contains N backticks with a pair of N + 1 backticks in Github issues/comments, i.e., ```` ```{r, echo=TRUE} 1 + 1 ``` ```` so that we could show a literal R code chunk like…

Read more »

A Note on on.exit()

I have used on.exit() for several years, but it was not until the other day that I realized a very weird thing about it: you’d better follow the default positions of its arguments expr and add, i.e., the first argument has to be expr and the second has to be add. on.exit(expr = NULL, add = FALSE) If you do on.exit(add = TRUE, {...}), weird things can happen. I discovered…

Read more »

continental divide

May 18, 2017
By
continental divide

While the Riddler puzzle this week was anticlimactic,  as it meant filling all digits in the above division towards a null remainder, it came as an interesting illustration of how different division is taught in the US versus France: when I saw the picture above, I had to go and check an American primary school […]

Read more »

How I Find, Manage, and Use GIFs

How I Find, Manage, and Use GIFs

A few months ago Jenny wanted me (and Karthik, if I remember correctly) to share some experience with GIFs. I have been busy with writing the blogdown book recently and don’t really have much time, so I’m going to write a quick post just to take a short break. I may expand this post in the future. First thing first. I tend to pronounce “GIF” with the soft G, but…

Read more »

When in Doubt, Upgrade

When in Doubt, Upgrade

I have said this many times in several Github issues and it is also the very first FAQ of knitr. It is a little exaggerative and certainly not a universal rule, but it helps a lot if you could try to upgrade everything before you report a software issue. It is even more helpful if you could also install the development version of the software and see if the problem…

Read more »

Dueling Data Science Surveys: KDnuggets & Rexer Go Live

May 16, 2017
By

What tools do we use most for data science, machine learning, or analytics? Python, R, SAS, KNIME, RapidMiner,…? How do we use them? We are about to find out as the two most popular surveys on data science tools have … Continue reading →

Read more »

Slides on Association Rule Mining with R

May 16, 2017
By
Slides on Association Rule Mining with R

See my latest slides on Association Rule Mining with R at http://www.rdatamining.com/training/medascin/RDM-slides-association-rule-mining-with-r.pdf It is one of my tutorials on Machine Learning with R for the Melbourne Data Science Week on 1 June 2017. If you are interested, details can be … Continue reading →

Read more »

A Note on missing()

I had misunderstood the function missing() for several years. Originally I thought it only applies to an argument that does not have a default or user-specified value. For example, this is fairly easy to understand: f = function(x) { missing(x) } f() # should be TRUE One day I was surprised to find that this also returned TRUE: f = function(x = 1) { missing(x) } f() What?! x does…

Read more »

R in Insurance 2017 Programme online

May 11, 2017
By
R in Insurance 2017 Programme online

The programme for the 2017 R in Insurance conference in Paris has been published. Talks will discuss new ideas and research with the applications in life and general insurance, from network analysis, reserving, pricing to catastrophe modelling, followe...

Read more »

Assessing the evidential value of journals with p-curve, R-index, TIVA, etc: A comment on Motyl et al. (2017) with new data

May 9, 2017
By

Recently, Matt Motyl et al. (2017) posted a pre-print paper in which they contrasted the evidential value of several journals in two time periods (2003-2004 vs. 2013-2014). The paper sparked a lot of discussion in Facebook groups [1][2], blog posts com...

Read more »


Subscribe

Email:

  Subscribe