Monthly Archives: September 2018

Bayesian Network Example with the bnlearn Package

September 30, 2018
By
Bayesian Network Example with the bnlearn Package

Bayesian Networks are probabilistic graphical models and they have some neat features which make them very useful for many problems. The post Bayesian Network Example with the bnlearn Package appeared first on Daniel Oehm | Gradient Descending.

Read more »

Calculating quantiles for groups with dplyr::summarize and purrr::partial

September 30, 2018
By

Recently, I was trying to calculate the percentiles of a set of variables within a data set grouped by another variable. However, I quickly ran into the realization that this is not very straight forward when using dplyr’s summarize. Before I demonstrate, let’s load the libraries that we will need. library(dplyr) library(purrr) If you don’t believe me when I say that it...

Read more »

New Mexico’s 53rd State Legislature

September 30, 2018
By
New Mexico’s 53rd State Legislature

Package descriptives NMSL53: an overview Attendance & party loyalty Health care-related roll calls Roll call details Incorporating census data Summary Postscript: Vizualizing congressional composition In this post, we introduce a new R data package, nmlegisdatr, that makes available roll call data for New Mexico’s 53rd (2017-18) State Legislature (NMSL53). While these data are publicly available via nmlegis.gov, they are wrapped up in thousands of PDFs and, hence,...

Read more »

tinkr: editing Markdown documents using XML tools

Remember our recent post showing that one can wrangle Markdown files programmatically without regex? That tech note showed how to convert Markdown bodies to XML in order to extract information from them. Now, this post goes one step further and presents tinkr, a package for converting .md and .Rmd files to XML, editing them, and… writing them back as Markdown! General tinkr workflow The goal of tinkr...

Read more »

sparklyr 0.9

September 30, 2018
By
sparklyr 0.9

Today we are excited to share that a new release of sparklyr is available on CRAN! This 0.9 release enables you to: Create Spark structured streams to process real time data from many data sources using dplyr, SQL, pipelines, and arbitrary R code. Monitor connection progress with upcoming RStudio Preview 1.2 features and support for properly interrupting Spark jobs from R. Use...

Read more »

Scraping twitter data to visualize trending tweets in Kuala Lumpur

September 30, 2018
By
Scraping twitter data to visualize trending tweets in Kuala Lumpur

(Disclaimer: I’ve no grudge against python programming language per se. I think its equally great. In the following post, I’m merely recounting my experience.) It’s been quite a while since I last posted. The reasons are numerous, notable being,...

Read more »

nanotime 0.2.3

September 30, 2018
By

A minor maintenance release of the nanotime package for working with nanosecond timestamps just arrived on CRAN. nanotime uses the RcppCCTZ package for (efficient) high(er) resolution time parsing and formatting up to nanosecond resolution, and the b...

Read more »

RcppAPT 0.0.5

September 29, 2018
By

A new version of RcppAPT – our interface from R to the C++ library behind the awesome apt, apt-get, apt-cache, … commands and their cache powering Debian, Ubuntu and the like – is now on CRAN. This version is a bit of experiment. I had asked on...

Read more »

Using R’s set.seed() to set seeds for use in C/C++ (including Rcpp)

September 29, 2018
By

In native R, the user sets the seed for random number generation (RNG) with set.seed(). Random number generators exist in C and C++ too; these need their own seeds, which are not obviously settable by set.seed(). Good news! It can be done. pacman::p_load(inline, purrr) rbernoulli Base R (or technically the stats package) provides no rbernoulli(). It’s a pretty gaping hole in the...

Read more »

4 ways to be more productive, using RStudio’s terminal

September 29, 2018
By
4 ways to be more productive, using RStudio’s terminal

Introduction RStudio version 1.1 introduced the Terminal functionality, which does not seem to be getting enough deserved attention and love even though it is very well integrated with the rest of the IDE and can be extremely useful for several daily use-cases. In this post we will try to cover 4 very common scenarios where the Terminal can be very useful...

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)