Monthly Archives: March 2018

Use shortcodes to embed tweets, videos, etc. in your blogdown blog posts

March 31, 2018
By

Shortcodes are simple snippets inside your content files calling built-in or custom templates. This short post is a shout-out for the blogdown::shortcode() function. Example(s) of blogdown::shortcode() can be found in blogdown book. To learn more about shortcodes visit https://gohugo.io/content-management/shortcodes/. Shortcodes make it super easy to embed content in blog posts. Lets say we have a video we want to embed...

Read more »

A new RStudio addin to facilitate inserting tables in Rmarkdown documents

A new RStudio addin to facilitate inserting tables in Rmarkdown documents

In the last months, I started increasingly using Rmd documents for preparing scientific reports, blog posts, etcetera. While I really like the flexibility offered by the system, one thing that I thought could be improved is the support for easily inserting tables. So, “inspired” also by the recent addition of the excellent insert image addin in blogdown, I decided...

Read more »

Fastai Collaborative Filtering with R and Reticulate

March 31, 2018
By

Jeremy Howard and Rachel Thomas are founders of fast.ai whose aim is to make deep learning accessible to all. They offer a course called Practical Deep Learning for Coders (Part 1). The last session, taught by Jeremy, was in Fall 2017 and the videos were released early January 2018. Their approach is top down by showing different applications first...

Read more »

Le Monde puzzle [#1048]

March 31, 2018
By
Le Monde puzzle [#1048]

An arithmetic Le Monde mathematical puzzle: A magical integer m is such that the remainder of the division of any prime number p by m is either a prime number or 1. What is the unique magical integer between 25 and 100? And is there any less than 25? The question is dead easy to

Read more »

Package Paths in R

March 31, 2018
By
Package Paths in R

Recently, while working on the Azure Data Lake R extension, I had to figure out a good way to create a zip file containing a package together with all its dependencies. This came down to understanding where does R store and search for packages. Despite the documentation, it did require additional reading and experimentation. First, The post Package Paths...

Read more »

The 10 Data Science Crack Commandments

March 31, 2018
By
The 10 Data Science Crack Commandments

 It’s the ten crack commandments, what? homie can’t tell me nothing about this code Can’t tell me nothing about these #rstats Number 1, make a function from a script. Everyone knows we’re to busy to be copy/pasting shit http://adv-r.had.co.nz/Functions.html Number 2, never let ’em know your data manipulation moves. Don’t you know Bad Boys move in silence and

Read more »

Deaths per firearm violence event by @ellis2013nz

March 31, 2018
By
Deaths per firearm violence event by @ellis2013nz

Caution - this blog post discusses homicide and suicide statistics and could be upsetting. If you feel disturbed or unhappy then here is a list of ways to get some emergency counselling help around the world. A grim research question In my last post I looked at fitting a Poisson distribution to a set of count data that had been...

Read more »

Deaths per firearm violence event by @ellis2013nz

March 31, 2018
By
Deaths per firearm violence event by @ellis2013nz

Caution - this blog post discusses homicide and suicide statistics and could be upsetting. If you feel disturbed or unhappy then here is a list of ways to get some emergency counselling help around the world. A grim research question In my last post...

Read more »

Advanced Techniques With Raster Data – Part 3: Exercises

March 31, 2018
By
Advanced Techniques With Raster Data – Part 3: Exercises

Background In this post, the ninth of the geospatial processing series with raster data, I will focus on interpolating and modeling air surface temperature data recorded at weather stations. For this purpose I will explore regression-kriging (RK), a spatial prediction technique commonly used in geostatistics that combines a regression of the dependent variable (air temperature Related exercise sets:Spatial Data...

Read more »

Loops in R – Exercises

March 30, 2018
By
Loops in R – Exercises

Using loops is generally discouraged in R when it is possible to avoid them using vectorized alternatives. Vectorized solution are be both faster to write, read and execute – except sometimes they aren’t and the definition of vectorization isn’t always straightforward. In any event, solutions using loops can be: The fastest to prototype The easiest Related exercise sets:Scripting Loops...

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)