Blog Archives

wrapr 1.4.1 now up on CRAN

May 18, 2018
By
wrapr 1.4.1 now up on CRAN

wrapr 1.4.1 is now available on CRAN. wrapr is a really neat R package both organizing, meta-programming, and debugging R code. This update generalizes the dot-pipe feature’s dot S3 features. Please give it a try! wrapr, is an R package that supplies powerful tools for writing and debugging R code. Introduction Primary wrapr services include: … Continue reading wrapr...

Read more »

Ready Made Plots make Work Easier

May 16, 2018
By
Ready Made Plots make Work Easier

A while back Simon Jackson and Kara Woo shared some great ideas and graphs on grouped bar charts and density plots (link). Win-Vector LLC‘s Nina Zumel just added a graph of this type to the development version of WVPlots. Nina has, as usual, some great documentation here. More and more I am finding when you … Continue reading Ready...

Read more »

rquery: SQL from R

May 10, 2018
By
rquery: SQL from R

My BARUG rquery talk went very well, thank you very much to the attendees for being an attentive and generous audience. (John teaching rquery at BARUG, photo credit: Timothy Liu) I am now looking for invitations to give a streamlined version of this talk privately to groups using R who want to work with SQL … Continue reading rquery:...

Read more »

Upcoming speaking engagments

April 19, 2018
By
Upcoming speaking engagments

I have a couple of public appearances coming up soon. The East Bay R Language Beginners Group: Preparing Datasets – The Ugly Truth & Some Solutions, Tuesday, May 1, 2018 at Robert Half Technologies, 1999 Harrison Street, Oakland, CA, 94612. Official May 2018 BARUG Meeting: rquery: a Query Generator for Working With SQL Data, Tuesday, … Continue reading Upcoming...

Read more »

R Tip: Use Slices

April 16, 2018
By
R Tip: Use Slices

R tip: use slices. R has a very powerful array slicing ability that allows for some very slick data processing. Suppose we have a data.frame “d“, and for every row where d$n_observations __ 5 we wish to “NA-out” some other columns (mark them as not yet reliably available). Using slicing techniques this can be done … Continue reading R...

Read more »

cdata Update

April 12, 2018
By
cdata Update

The R package cdata now has version 0.7.0 available from CRAN. cdata is a data manipulation package that subsumes many higher order data manipulation operations including pivot/un-pivot, spread/gather, or cast/melt. The record to record transforms are specified by drawing a table that expresses the record structure (called the “control table” and also the link between … Continue reading cdata...

Read more »

Neglected R Super Functions

April 11, 2018
By
Neglected R Super Functions

R has a lot of under-appreciated super powerful functions. I list a few of our favorites below. Atlas, carrying the sky. Royal Palace (Paleis op de Dam), Amsterdam. Photo: Dominik Bartsch, CC some rights reserved. stats::approx(): approximate a curve/function. base::cumsum(): cumulative ordered sum. stats::ecdf(): estimate the cumulative distribution function. base::findInterval(): assign values to bins. base::match(): … Continue reading Neglected...

Read more »

R Tip: Use match_order() to Align Data

April 10, 2018
By

R tip. Use wrapr::match_order() to align data. Suppose we have data in two data frames, and both of these data frames have common row-identifying columns called “idx“. library("wrapr") d1

Read more »

magrittr and wrapr Pipes in R, an Examination

April 6, 2018
By

Let’s consider piping in R both using the magrittr package and using the wrapr package. magrittr pipelines The magittr pipe glyph “%__%” is the most popular piping symbol in R. magrittr documentation describes %__% as follow. Basic piping: x %__% f is equivalent to f(x) x %__% f(y) is equivalent to f(x, y) x %__% … Continue reading magrittr...

Read more »

Four Years of Practical Data Science with R

April 4, 2018
By
Four Years of Practical Data Science with R

Four years ago today authors Nina Zumel and John Mount received our author’s copies of Practical Data Science with R! It has its imitators, but it remains the best “I have R, now what do I do with it?” book (as it works the user through non-trivial projects, analyses, presentations, predictive analytic, data science, and … Continue reading Four...

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)