April 2015

How large vectors in R might be stored compactly

April 30, 2015 | Radford Neal

Vectors in R can currently have elements of two sizes — 8-byte double-precision floating-point elements for `numeric’ vectors, or 4-byte elements for `integer’ or `logical’ vectors.  You can also have vectors whose elements are 1-byte `raw’ values, but these raw vectors don’t support negative numbers, or NA values, so they ... [Read more...]

Dockerizing a Shiny App

April 30, 2015 | Flavio Barros

After a long pause of more than four months, I am finally back to post here. Unfortunately, many commitments prevented me keep posting, but coming back, i changed the deployment (now this blog runs entirely within a docker container with some other cool things I intend to post more forward) ... [Read more...]

Le Monde puzzle [#909]

April 30, 2015 | xi'an

Another of those “drop-a-digit” Le Monde mathematical puzzle: Find all integers n with 3 or 4 digits an single interior zero digit, such that removing that zero digit produces a divider of x. As in puzzle #904, I made use of the digin R function: and simply checked all integers up to 10⁶: which ...
[Read more...]

Introduction to Applied Econometrics With R

April 30, 2015 | Dave Giles

I came across a January post from David Smith at Revolution Analytics, in his Revolutions blog. It's titled, An Introduction to Applied Econometrics With R, and it refers to a very useful resource that's been put together by Bruno Rodrigues of the University of Strasbourg. It's called Introduction to Programming ... [Read more...]

The First NY R Conference

April 30, 2015 | Joseph Rickert

by Joseph Rickert Last Friday and Saturday the NY R Conference briefly lit up Manhattan's Union Square neighborhood as the center of the R world. You may have caught some of the glow on twitter. Jared Lander, volunteers from the New York Open Statistical Programming Meetup along with the staff ... [Read more...]

EARL2015 Conference Agenda (London) Announced

April 30, 2015 | Liz Matthews

  The full agenda for the London EARL2015 Conference has now been announced.  The conference focusses on the real world commercial usage and business applications of the R Language and features speakers from companies such as Shell, Allianz, KPMG, UBS, … Continue reading → [Read more...]

How to Add WAR Metrics to your Lahman Database

April 30, 2015 | Kris Eberwein

I get a lot of questions on how to calculate WAR in the Lahman database. In the past I’ve discussed ways to calculate wOBA and FIP in Lahman but WAR has always been difficult due to the “closed-source” nature of the calculation. But there is an answer While stumbling ... [Read more...]

Circle packing in R (again)

April 29, 2015 | Michael Bedward

Back in 2010 I posted some R code for circle packing. Now, just five years later, I've ported the code to Rcpp and created a little package which you can find at GitHub.The main function is circleLayout which takes a set of overlapping circles and tries to find a non-overlapping ... [Read more...]

Wakefield: Random Data Set (Part II)

April 29, 2015 | tylerrinker

This post is part II of a series detailing the GitHub package, wakefield, for generating random data sets. The First Post (part I) was a test run to gauge user interest. I received positive feedback and some ideas for improvements, … Continue reading →
[Read more...]

the most patronizing start to an answer I have ever received

April 29, 2015 | xi'an

Another occurrence [out of many!] of a question on X validated where the originator (primitivus petitor) was trying to get an explanation without the proper background. On either Bayesian statistics or simulation. The introductory sentence to the question was about “trying to understand how the choice of priors affects a ... [Read more...]

Turning Data Into Awesome With sqldf and pandasql

April 29, 2015 | atmathew

Both R and Python possess libraries for using SQL statements to interact with data frames. While both languages have native facilities for manipulating data, the sqldf and pandasql provide a simple and elegant interface for conducting tasks using an intuitive framework that’s widely used by analysts.         R and sqldf ...
[Read more...]

Benchmarks of RRO on OSX and Ubuntu

April 29, 2015 | David Smith

Bay Area engineer Vineet Abraham recently ran some benchmarks for Revolution R Open (RRO) running on Mac OS X and on Ubuntu. Thanks to the multi-threaded processing capabilites of RRO, several operations ran much faster than R downloaded from CRAN, without having to change any code: For the most part, ... [Read more...]

See R in action at the BUILD conference

April 29, 2015 | David Smith

Build 2015, the Microsoft conference which brings around 5,000 developers to the Moscone Center in San Francisco, begins tomorrow. The conference is sold out, but you can livestream the keynote presentations from buildwindows.com to catch all the big announcements. You can also follow along on Twitter at the #Build2015 hashtag. There ... [Read more...]

Finance-YahooQuote 0.25 hotfix

April 29, 2015 | Thinking inside the box

A hotfix release for the Finance-YahooQuote Perl module on CPAN is now available. Available Yahoo! Finance decided to change the base URL. My thanks to Nicola Chiapolini who not only noticed but also sent me the one-line patch fixing this:
--- YahooQuote.pm~      2010-03-27 01:44:10.000000000 +0100
+++ YahooQuote.pm       2015-04-29 11:31:20.407926674 +0200
@@ -34,7 +34,7 @@
 $VERSION = '0.24';
 ## these variables govern what type of quote the modules is retrieving
-$QURLbase = "http://download.finance.yahoo.com/d/quotes.csvr?e=.csv&f=";
+$QURLbase = "http://download.finance.yahoo.com/d/quotes.csv?e=.csv&f=";
 $QURLformat = "snl1d1t1c1p2va2bapomwerr1dyj1x";        # default up to 0.19
 $QURLextended = "s7t8e7e8e9r6r7r5b4p6p5j4m3m4";        # new in 0.20
 $QURLrealtime = "b2b3k2k1c6m2j3"; # also new in 0.20
If need be, edit your file YahooQuote.pm by ... [Read more...]
1 2 3 11

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)