July 2014

Format Markdown Documents in R

July 29, 2014 | Educate-R - R

Have you ever used a markdown file to create an html file? Have you ever wanted to quickly format the subsequent html file to add some color or other aspects? If your answer is yes to both of those questions, this package may be of interest to you. ... [Read more...]

Packages vs ProjectTemplate

July 29, 2014 | Deciphering life: One bit at a time :: R

Packages vs ProjectTemplate tl;dr Imposing a different structure than R packages for distributing R code is a bad idea, especially now that R package tools have gotten to the point where managing a package has become much easier. ProjectTemplate ?? My last two posts (1, 2) provided an argument and an example ... [Read more...]

Revisiting package dependencies

July 29, 2014 | Andrie de Vries

by Andrie de Vries In my previous post I wrote about how to identify and visualize package dependencies. Within hours, Duncan Murdoch (member of R-core) identified some discrepancies between my list of dependencies and the visualisation. Since then, I fixed the dispecrancies. In this blog post I attempt to clarify ... [Read more...]

Fast-track publishing using the new R markdown – a tutorial and a quick look behind the scenes

July 29, 2014 | Max Gordon

The new R Markdown (rmarkdown-package) introduced in Rstudio 0.98.978 provides some neat features by combining the awesome knitr-package and the pandoc-system. The system allows for some neat simplifications of the fast-track-publishing (ftp) idea using so called formats. I've created a new package, the Grmd-package, with an extension to the html_document ... [Read more...]

Hit and run. Think Bayes!

July 29, 2014 | Markus Gesmann

At the R in Insurance conference Arthur Charpentier gave a great keynote talk on Bayesian modelling in R. Bayes' theorem on conditional probabilities is strikingly simple, yet incredibly thought provoking. Here is an example from Daniel Kahneman to test your intuition. But first I have to start with Bayes' theorem.... [Read more...]

Chain Operations: An Interesting Feature in dplyr Package

July 28, 2014 | statcompute

[This article was first published on Yet Another Blog in Statistical Computing » S+/R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. library(data.table) library(dplyr) data1 <- fread('/home/liuwensui/Downloads/2008.csv', header = T, sep = ',') dim(data1) # [1] 7009728 29 data2 <- data1 %.% filter(Year = 2008, Month %in% c(1, 2, 3, 4, 5, 6)) %.% select(Year, Month, AirTime) %.% group_by(Year, Month) %.% summarize(avg_time = mean(AirTime, na.rm = TRUE)) %.% arrange(desc(avg_time)) print(data2) # Year Month avg_time # 1 2008 3 106.1939 # 2 2008 2 105.3185 # 3 2008 6 104.7604 # 4 2008 1 104.6181 # 5 2008 5 104.3720 # 6 2008 4 104.2694 To leave a comment for the author, please follow the link and comment on their blog: Yet Another Blog in Statistical Computing » S+/R. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want to share your content on R-bloggers? click here if you have a blog, or here [...] [Read more...]

Scraping information of CRAN packages

July 28, 2014 | Kun Ren

(This article is adapted to the latest version of rvest package.) In my previous post, I demonstrated how we can scrape online data using existing packages. In this post, I will take it a bit further: I will scrape more information of CRAN packages since each of them also has ... [Read more...]

Data Caching

July 28, 2014 | Jason Bryer

Data caching is not new. It is often necessary to save intermediate data files when the process of loading and/or manipulating data takes a considerable amount of time. This problem is further complicated when working with dynamic data that changes regularly. In these situations it often sufficient to use ... [Read more...]

Clipping spatial data in R

July 28, 2014 | Robin Lovelace - R

This miniature vignette shows how to clip spatial data based on different spatial objects in R and a ‘bounding box’. Spatial overlays are common in GIS applications and R users are fortunate that the clipping and spatial subsetting functions are mature and fairly fast. We’ll also write a new ...
[Read more...]

jpmml and R (Free Webinar)

July 28, 2014 | Bob Muenchen

This free, global webinar will provide an introduction to jpmml, the world’s leading open-source PMML scoring engine currently being utilized by companies such as Airbnb to rapidly deploy predictive models into production. Webinar Format: – What is PMML? – Building … Continue reading → [Read more...]

The Pay-for-Performance Myth

July 28, 2014 | arthur charpentier

Last week, Eric Chemi and Ariana Giorgi published an interesting article on “The Pay-for-Performance Myth” With all the public chatter about exorbitant executive compensation and income inequality, it’s useful to look at the relationship between chief executive officer pay and corporate performance. Typically, when the subject of their big ... [Read more...]

EARL and other upcoming events

July 28, 2014 | Pat

Highlighted EARL As in “Effective Applications of the R Language”. 2014 September 15-17, London. Somehow they gave higher billing to Ben Goldacre than to Pat Burns.  If Obama were coming, they’d probably bill him above me too — and what does he know about R?  In spite of that little glitch, ...
[Read more...]
1 2 3 4 12

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)