June 2019

Parallel R: Socket or Fork

June 30, 2019 | statcompute

In the R parallel package, there are two implementations of parallelism, e.g. fork and socket, with pros and cons. For the fork, each parallel thread is a complete duplication of the master process with the shared environment, including objects or variables defined prior to the kickoff of parallel threads. ... [Read more...]

Coping with varying `gcc` versions and capabilities in R packages

June 29, 2019 | R on roryverse

The problem I have a package called strex which is for string manipulation. In this package, I want to take advantage of the regex capabilities of C++11. The reason for this is that in strex, I find myself needing to do a calculation like
x <- list(c("1,000", "2,000,000"),
          c("1", "50", "3,455"))
lapply(x, function(x) as.numeric(stringr::str_replace_all(x, ",", "")))
#> [[1]]
#> [1] 1e+03 2e+06
#> 
#> [[2]]
#> [1]    1   50 3455
A lapply like this can ... [Read more...]

data.table by a dummy

June 29, 2019 | HighlandR

very brief intro notes - I like dplyr I’ve used data.table in the past, though didn’t persevere with it enough. My happy safe space is dplyr & ggplot2. I love these packages and use them almost every time I use R. Every so often , I s... [Read more...]

data.table by a dummy

June 29, 2019 | HighlandR

very brief intro notes - I like dplyr I’ve used data.table in the past, though didn’t persevere with it enough. My happy safe space is dplyr & ggplot2. I love these packages and use them almost every time I use R. Every so often , ... [Read more...]

data.table by a dummy

June 29, 2019 | HighlandR

very brief intro notes - I like dplyr I’ve used data.table in the past, though didn’t persevere with it enough. My happy safe space is dplyr & ggplot2. I love these packages and use them almost every time I use R. Every so often , ... [Read more...]

rvw 0.6.0: First release

June 29, 2019 | Thinking inside the box

Note: Crossposted by Ivan, James and myself. Today Dirk Eddelbuettel, James Balamuta and Ivan Pavlov are happy to announce the first release of a reworked R interface to the Vowpal Wabbit machine learning system. Started as a GSoC 2018 project, the new rvw package was built to give R users easier ... [Read more...]

My Favorite data.table Feature

June 29, 2019 | John Mount

My favorite R data.table feature is the “by” grouping notation when combined with the := notation. Let’s take a look at this powerful notation. First, let’s build an example data.frame. d [Read more...]

rvw 0.6.0: First release

June 29, 2019 | Thinking inside the box

rvw 0.6.0: First release rvw 0.6.0: First release Note: Crossposted by Ivan, James and myself. Today Dirk Eddelbuettel, James Balamuta and Ivan Pavlov are happy to announce the first release of a reworked R interface to the Vowpal Wabbit machine learning system. Started as a GSoC 2018 project, the new rvw package was ... [Read more...]

Spurious correlations and random walks

June 29, 2019 | Fabian Dablander

The number of storks and the number of human babies delivered are positively correlated (Matthews, 2000). This is a classic example of a spurious correlation which has a causal explanation: a third variable, say economic development, is likely to cause both an increase in storks and an increase in the number ...
[Read more...]

CRAN version and preprint!

June 29, 2019 | sachaepskamp

Version 0.3.2 of psychonetrics is now on CRAN! This means that the package can now be installed easily from R and that the automatically generated manual is online. For more notes on how to install psychonetrics, please see the installation guide on this website. Note that this page also explains how ... [Read more...]

Diversification: fact or fiction?

June 28, 2019 | R on OSM

“Diversify, diversify, diversify!” Mantra, call-to-arms, or warning. Whether you’re an amateur or professional, a student or professor, a pedestrian or pundit you’ve been told that diversification is patently good when it comes to investing. Golly, ...
[Read more...]

Diversification: fact or fiction?

June 28, 2019 | R on OSM

“Diversify, diversify, diversify!” Mantra, call-to-arms, or warning. Whether you’re an amateur or professional, a student or professor, a pedestrian or pundit you’ve been told that diversification is patently good when it comes to investing. Golly, it makes sense. Don’t bet it all black. Don’t own just ...
[Read more...]

Mapping NBA Shot Locations

June 28, 2019 | schochastics

I recently came across the article “How Mapping Shots In The NBA Changed It Forever” and although I am not a big basketball fan, I was impressed by the visualizations. I actually bought the book “Sprawlball” by Kirk Goldsberry afterwards, where this was taken from. I can only recommend it, ... [Read more...]
1 2 3 4 13

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)