2018

Smartly select and mutate data frame columns, using dict

December 9, 2018 | Roman Pahl

Motivation Column operations Add Modify Remove Benchmark Summary Motivation The dplyr functions select and mutate nowadays are commonly applied to perform data.frame column operations, frequently combined with magrittrs forward %__% pipe. While working well interactively, however, these methods often would require additional checking if used in “serious” code, for example, ...
[Read more...]

Day 09 – little helper object_size_in_env

December 9, 2018 | Jakob Gepp

We at STATWORX work a lot with R and we often use the same little helper functions within our projects. These functions ease our daily work life by reducing repetitive code parts or by creating overviews of our projects. At first, there was no plan to make a package, but ...
[Read more...]

Smartly select and mutate data frame columns, using dict

December 8, 2018 | Roman Pahl

Motivation The dplyr functions select and mutate nowadays are commonly applied to perform data.frame column operations, frequently combined with magrittrs forward %__% pipe. While working well interactively, however, these methods often would require additional checking if used in “serious” code, for example, to catch column name clashes. In principle, the ...
[Read more...]

Data Wrangling with dbplyr

December 8, 2018 | Rsquared Academy Blog

Introduction This is the second post in the series R & Databases. You can find the links to the first post of this series below: Quick Guide: R & SQLite In this post, we will learn to query data from a database using dplyr. Libraries, Code & Data We will use the following ... [Read more...]

transformr: Age of Spatial

December 8, 2018 | Data Imaginist

Once again, I gives me great pleasure to announce a new package has joined CRAN. transformr is the spatial brother of tweenr and as with the tweenr update a few months ago, this package is very much driven by the infrastructural needs of gganimate. It is probably the last piece ...
[Read more...]

Interactive panel EDA with 3 lines of code

December 8, 2018 | An Accounting and Data Science Nerd's Corner

Exploratory data analysis is important, everybody knows that. With R, it is also easy. Below you see three lines of code that allow you to interactively explore the Preston Curve, the prominent association of country level real income per capita with life expectancy.
install.packages("ExPanDaR")
library(ExPanDaR)
wb <- read.csv("https://joachim-gassen.github.io/data/wb_condensed.csv")
ExPanD(wb, cs_id = "country", ts_id = "year")
After running these three lines of ...
[Read more...]

confint3: 2-Sided Confidence Interval (Extended Moodle Version)

December 8, 2018 | R/exams

Exercise template for computing the 2-sided confidence interval (with extended Moodle processing) for the mean based on a random sample. Name: confint3 Type: cloze Related: confint2 Description: Computing the 2-sided confidence interval at 95% level for the mean based on a random sample. The exercise is a cloze with two numeric ... [Read more...]

It was twenty years ago …

December 8, 2018 | Thinking inside the box

… this week that I made a first cameo in the debian/changelog for the Debian R package: r-base (0.63.1-1) unstable; urgency=low New upstream release Linked html directory to /usr/doc/r-base/doc/html (Dirk Eddelbuettel) – Douglas Bates bates@st... [Read more...]

It was twenty years ago …

December 8, 2018 | Thinking inside the box

… this week that I made a first cameo in the debian/changelog for the Debian R package: r-base (0.63.1-1) unstable; urgency=low New upstream release Linked html directory to /usr/doc/r-base/doc/html (Dirk Eddelbuettel) – Douglas Bates bates@st... [Read more...]

Timing Grouped Mean Calculation in R

December 8, 2018 | John Mount

This note is a comment on some of the timings shared in the dplyr-0.8.0 pre-release announcement. The original published timings were as follows: With performance metrics: measurements are marketing. So let’s dig in the above a bit. These timings are of the kind of small task large number of ...
[Read more...]

R:case4base – Sorting data with base R

December 8, 2018 | Jozef's Rblog

Introduction In this post in the R:case4base series we will examine sorting (ordering) data in base R. We will learn to sort our data based on one or multiple columns, with ascending or descending order and as always look at alternatives to base R, namely the tidyverse’s ... [Read more...]

Day 08 – little helper intersect2

December 8, 2018 | Jakob Gepp

We at STATWORX work a lot with R and we often use the same little helper functions within our projects. These functions ease our daily work life by reducing repetitive code parts or by creating overviews of our projects. At first, there was no plan to make a package, but ...
[Read more...]

Shinyfit: Advanced regression modelling in a shiny app

December 7, 2018 | Ewen Harrison

Many of our projects involve getting doctors, nurses, and medical students to collect data on the patients they are looking after. We want to involve many of them in data analysis, without the requirement for coding experience or access to statistical software. To achieve this we have built Shinyfit, a ... [Read more...]

Day 07 – little helper count_na

December 7, 2018 | Jakob Gepp

We at STATWORX work a lot with R and we often use the same little helper functions within our projects. These functions ease our daily work life by reducing repetitive code parts or by creating overviews of our projects. At first, there was no plan to make a package, but ...
[Read more...]
1 8 9 10 11 12 174

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)