Counting and Visualizing CRAN Downloads with packageRank (with Caveats!)

May 10, 2020
By
Counting and Visualizing CRAN Downloads with packageRank (with Caveats!)

This post was contributed by Peter Li. Thank you, Peter! packageRank is an R package that helps put package download counts into context. It does so via two functions. The first, cranDownloads(), extends cranlogs::cran_downloads() by adding a plot() method and a more user-friendly interface. The second, packageRank(), uses rank percentiles, a nonparametric statistic that tells you the percentage of packages...

Read more »

#1 T^4: Adding Some Color to the Shell

The first proper video (following last week’s announcement) is up for new T^4 series of video lightning talks with tips, tricks, tools, and toys. Today we just to a little enhancement for the shell enabled color output (if not already on by default...

Read more »

Summative Online Exams with R/exams and OpenOLAT

May 10, 2020
By
Summative Online Exams with R/exams and OpenOLAT

Tutorial for conducting online exams generated by R/exams in OpenOLAT, including strategies to prevent cheating such as extended randomization, linear navigation, and a sworn declaration prior to the exam. Overview Th...

Read more »

A switch-case construct for the R language

May 10, 2020
By

In contrast to many other programming languages, R has no native switch-case statement. Often, however, it is useful to have an efficient way of testing multiple, similar conditions while avoiding nested if-else constructs which make the code less clear and readable. The switchcase package offers a switch-case construct for R. It is encapsulated in the package's main function, switchCase()....

Read more »

lumberjack 1.2.0 is on CRAN and paper accepted by JSS

May 10, 2020
By
lumberjack 1.2.0 is on CRAN and paper accepted by JSS

lumberjack is a package that allows you to track (log) changes in data while an R script is running. This allows you to detect exactly which code had what effect on your data. The only thing you have to do … Continue reading →

Read more »

Deal of the Day May 10: Half off Practical Data Science with R, Second Editio

May 9, 2020
By
Deal of the Day May 10: Half off Practical Data Science with R, Second Editio

Deal of the Day May 10: Half off Practical Data Science with R, Second Edition. Use code dotd051020au at https://bit.ly/2xLRPCk

Read more »

MODIStsp v. 1.4.0 is out !

A new version of MODIStsp (1.4.0) is on CRAN as of today ! This version: Switches to use of GDAL3/PROJ6 WKTs for projection representation, using sf::gdal_utils to perform gdalwarp/gdaltranslate instead of gdalUtils on external GDAL; Switches to use o...

Read more »

Benchmark of popular graph/network packages v2

May 9, 2020
By
Benchmark of popular graph/network packages v2

This is an update of a benchmark of popular graph / network packages post. This study aims to serve as a starting point for anyone interested in applied graph or network analysis. The featured network packages offer a convenient and standardised API for modelling data as graphs and extracting network related insights. Some common use cases include finding the...

Read more »

eponge: Keep Your Environment Clean

May 9, 2020
By
eponge: Keep Your Environment Clean

eponge is a small package, which facilitates selective object removal. It was released on CRAN at 23th March 2020. Initially, the package was named sponge, but during first submission trial I found out, that currently there exists the SPONGE package, ...

Read more »

{tidycovid19}: New data and documentation

{tidycovid19}: New data and documentation

A recent update to the {tidycovid19} package brings data on testing, alternative case data, some regional data and proper data documentation. Using all this, you can use the package to explore the associations of (the lifting of) governmental measures, citizen behavior and the Covid-19 spread. Installation The Package is hosted on Github. As the underlying data sources change their format and...

Read more »

Riddler: Can You Tell When The Snow Started?

May 9, 2020
By
Riddler: Can You Tell When The Snow Started?

FiveThirtyEight’s Riddler Express ( Link to the original article.) From Patrick Mayor comes a question about something we’re doing these days to keep ourselves and others safe: social distancing. You’re walking along the middle of a wide sidewalk when you see someone walking toward you from the other direction, also down the middle of the sidewalk, 12 feet away. Being responsible citizens, you pass each other while...

Read more »

Animating goals in R using ggsoccer and gganimate.

May 9, 2020
By
Animating goals in R using ggsoccer and gganimate.

After seeing this blog post from Matt Dray, and this github repo from Devin Pleurer, I knew what my next blog post was going to be. My last post was my first foray into gganimate, and this will be my first look at the ggsoccer package. Let’s get started. Code for the finished product availableContinue reading "Animating goals in...

Read more »

ttdo 0.0.5: Reflect tinytest update

ttdo 0.0.5: Reflect tinytest update

A maintenance release of our (still small) ttdo package just arrived on CRAN. As introduced last fall, the ttdo package extends the most excellent (and very minimal / zero depends) unit testing package tinytest by Mark van der Loo with the very cleve...

Read more »

modelStudio and The Grammar of Interactive Explanatory Model Analysis

May 9, 2020
By
modelStudio and The Grammar of Interactive Explanatory Model Analysis

The new version of modelStudio has recently been released on CRAN.modelStudio is an R package that automates the exploration of ML models and allows for interactive examination. It works in a model agnostic fashion, therefore is compatible with most of...

Read more »

yorkr rocks women’s One Day International (ODI) and International T20!!

May 9, 2020
By
yorkr rocks women’s One Day International (ODI) and International T20!!

“Life is not measured by the number of breaths we take, but by the moments that take our breath away.” Maya Angelou “Life shrinks or expands in proportion to one’s courage.” Anais Nin “Devotion to the truth is the hallmark of morality; there is no greater, nobler, more heroic form of devotion than the act of a … Continue reading yorkr...

Read more »

Preserving zero-length groups

May 8, 2020
By
Preserving zero-length groups

This week I learned about another neat trick with tidyverse functions: the argument .drop from the group_by function. To showcase this functionality I made up a simple example with this dataset consisting of nuclear accidents data. original_data % mdy() %__% year(), In_Europe = if_else(Region %in% c("EE", "WE"), T, F) %__% as.factor()) %__% filter(Year %__% between(1989, 2011)) We then simply compute the percentage...

Read more »

Understanding Word Embedding Arithmetic: Why there’s no single answer to “King - Man + Woman = ?”

May 8, 2020
By
Understanding Word Embedding Arithmetic: Why there’s no single answer to “King - Man + Woman = ?”

Representing words in a numerical format has been a challenging and important first step in building any kind of Machine Learning (ML) system for processing natural language, be it for modelling social media sentiment, classifying emails, recognizing names inside documents, or translating sentences into other languages. Machine Learning models can take as input vectors and

Read more »

tinytest 1.2.0 is on CRAN

May 8, 2020
By
tinytest 1.2.0 is on CRAN

tinytest is a relatively new, light-weight (no-dependency) but full-featured unit testing framework for R. It is currently used by 60+ packages, including the famous Rcpp package. The latest version of tinytest was accepted by CRAN on 5 May 2020. This … Continue reading →

Read more »

Test positivity rates and actual incidence and growth of diseases by @ellis2013nz

Test positivity rates and actual incidence and growth of diseases by @ellis2013nz

Test positivity rates and disease incidence OK, lets talk about test positivity rates ie the proportion of administered tests that conclude the subject has the disease being tested for. These are in the news, with COVID-19 test positivity being used as an informal indicator of COVID-19 incidence and the quality of the confirmed case data, for example in Nate Silver’s...

Read more »

Use basic operators

May 8, 2020
By
Use basic operators

R is not only good for analysing and visualizing data, but also for solving maths problems or comparing data with each other. Plus you can use it just like a pocket calculator. Use R as a pocket calculator Use arithmetic operators on vectors Use relational operators on vectors Use logical operators on vectors ___ + ___ ___ - ___ ___ / ___ ___ * ___ ___ ^ ___ ___...

Read more »

Same Time Next Year: crunching PubMed data

May 8, 2020
By
Same Time Next Year: crunching PubMed data

I am giving a talk next week and wanted to update some plots from an old analysis that previously featured on quantixed. The question is: how long does it take for a paper get published? The answer is complex (as previously discussed on quantixed), but we can at least find out using data from PubMed

Read more »

Machined risk premia

May 7, 2020
By
Machined risk premia

Over the last few posts, we’ve discussed methods to set return expectations to construct a satisfactory portfolio. These methods are historical averages, discounted cash flow models, and risk premia. our last post, focused on the third method: risk premia. Using the Capital Asset Pricing Model (CAPM) one can derive the required return for a particular asset based on the...

Read more »

Custom errors for cross-validation using crossval::crossval_ml

May 7, 2020
By

Custom errors for cross-validation using crossval::crossval_ml

Read more »

Some Upcoming R Related, Virtual Events

May 7, 2020
By
Some Upcoming R Related, Virtual Events

COVID-19 Data Forum Webinar - Next Thursday (5/14/20) at Noon Pacific time, the COVID-19 Data Forum, sponsored by R Consortium and the Stanford Data Science Institute will open with a public webinar. The purpose of the Forum is to provide a way for experts to focus on data-related aspects of the scientific response to the pandemic, including data access and...

Read more »

Vignette: Generate your own ggplot theme gallery

May 7, 2020
By
Vignette: Generate your own ggplot theme gallery

Background I’ve always found it a bit of a pain to explore and choose from all the different themes available out there for {ggplot2}. Yes I know, I know - there are probably tons of websites out there with a ggplot theme gallery which I can Google,1 but it’s always more fun if you can create your own. So here’s my...

Read more »

Why and how maintain a NEWS file for your R package?

May 7, 2020
By

Your R package is doomed to evolve as you add new features and bug fixes. There is some value in cultivating a NEWS file as a response to package transformation. In this post, we shall go through why keeping track of changes, how to create and maintain a changelog, advocating for the NEWS.md format. Why cultivate a changelog? You will most probably change...

Read more »

Thank you “Why R?” for Being Awesome Hosts

May 7, 2020
By

Thank you very much Why R? for being awesome hosts. We are really pleased with how your virtual MeetUp went. For those who missed it here is a link.

Read more »

Thank you “Why R?” for Being Awesome Hosts

May 7, 2020
By

Thank you very much Why R? for being awesome hosts. We are really pleased with how your virtual MeetUp went. For those who missed it here is a link.

Read more »

Make Andrew happy with one simple ggplot trick

May 7, 2020
By

By default, ggplot expands the space above and below the x-axis (and to the left and right of the y-axis). Andrew has made it pretty clear that he thinks the x axis should be drawn at y = 0. To remove the extra space around the axes when you have continuous (not discrete or log

Read more »

Search R-bloggers

Sponsors