November 2018

Congress Over Time

November 17, 2018 | R on kieranhealy.org

Since the U.S. midterm elections I’ve been playing around with some Congressional Quarterly data about the composition of the House and Senate since 1945. Unfortunately I’m not allowed to share the data, but here are two or three things I had to do with it that you might ... [Read more...]

Convert Data Frame to Dictionary List in R

November 16, 2018 | statcompute

In R, there are a couple ways to convert the column-oriented data frame to a row-oriented dictionary list or alike, e.g. a list of lists. In the code snippet below, I would show each approach and how to extract keys and values from the dictionary. As shown in the ... [Read more...]

RcppGetconf 0.0.3

November 16, 2018 | Thinking inside the box

A second and minor update for the RcppGetconf package for reading system configuration — not unlike getconf from the libc library — is now on CRAN. Changes are minor. We avoid an error on a long-dead operating system cherished in one particular c... [Read more...]

Mapping ggplot geoms and aesthetic parameters

November 16, 2018 | R on YIHAN WU

The sheer variety of geom_* in ggplot2 is overwhelming and astounding, especially with the control over the many aesthetics such as shape and color. For example, the ggplot2 cheat sheet is packed (link). I frequently forget which aes parameters exist for each geom_* and need a quick look at the ... [Read more...]

Example of Overfitting

November 16, 2018 | matloff

I occasionally see queries on various social media as to overfitting — what is it?, etc. I’ll post an example here. (I mentioned it at my talk the other night on our novel approach to missing values, but had a bug in the code. Here is the correct account.) The ... [Read more...]

The tidy caret interface in R

November 16, 2018 | Francisco Lima

Among most popular off-the-shelf machine learning packages available to R, caret ought to stand out for its consistency. It reaches out to a wide range of dependencies that deploy and support model building using a uniform, simple syntax. I have been using caret extensively for the past three years, with ...
[Read more...]

In case you missed it: October 2018 roundup

November 15, 2018 | David Smith

In case you missed them, here are some articles from October of particular interest to R users. Peter Provost ports some 80's-era BASIC programs for kids to R. In a podcast for Fringe FM, I discuss the ethics of AI, Microsoft and Open Source, and the R Community. Roundup of ... [Read more...]

Quoting in R

November 15, 2018 | John Mount

Many R users appear to be big fans of "code capturing" or "non standard evaluation" (NSE) interfaces. In this note we will discuss quoting and non-quoting interfaces in R. The above terms are simply talking about interfaces where a name to be used is captured from the source code the ... [Read more...]

A deep dive into glmnet: standardize

November 15, 2018 | kjytay

I’m writing a series of posts on various function options of the glmnet function (from the package of the same name), hoping to give more detail and insight beyond R’s documentation. In this post, we will focus on the standardize … Continue reading →
[Read more...]

From MetaLandSim to igraph and back!

November 15, 2018 | Frederico Mestre

One of these days I got an email about converting MetaLandSim objects to igraph (or the other way around). One of the reasons I did not use igraph in the first place (leading me to develop MetaLandSim) was that I needed my nodes (the vertexes, using igraph nomenclature) to have ...
[Read more...]
1 5 6 7 8 9 15

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)