Mobility & Unrest in South Africa

[This article was first published on R | datawookie, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Did the recent unrest in South Africa have a detectable effect … Read more

Categories R Tags ExcerptFavorite

R Client for R-universe APIs

[This article was first published on Valerio Gherardi, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Following my previous post on how to use your R-universe API to … Read more

Categories R Tags ExcerptFavorite

R for Beginners — Part 2: Working with Matrices

Data Science Teaching A quick tutorial for beginners to get started with the very popular software for statistics and data analysis. Image by Author The R software is a very popular software for statistical computing and graphics. It provides many packages which can be also used for data science, especially for data analysis. This article … Read more

Impressions from useR! 2021

[This article was first published on Mirai Solutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The useR! conference took place as a global online conference and we … Read more

Categories R Tags ExcerptFavorite

Hosting Shiny Apps with Shiny Server

[This article was first published on R – Hosting Data Apps, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Shiny Server is a free open-source option to host … Read more

Categories R Tags ExcerptFavorite

The Hitchhiker’s Guide to Responsible Machine Learning

Yesterday Olga Tokarczuk (2018 Nobel Prize in Literature) said in an interview that when she thinks about literature, she no longer thinks about books!!! So, how should we effectively tell the most important story in predictive modelling i.e. The story of Responsible ML? We (MI2DataLab) are currently working on an exciting and interdisciplinary experiment combining a … Read more

Categories R Tags ExcerptFavorite

How to Calculate Root Mean Square Error (RMSE) in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Root Mean Square Error In R, The root mean square error … Read more

Categories R Tags ExcerptFavorite

rOpenSci News Digest, July 2021

Dear rOpenSci friends, it’s time for our monthly news roundup! You can read this post on our blog. Now let’s dive into the activity at and around rOpenSci! 🔗 rOpenSci HQ Great news for fans of statistics and software! rOpenSci’s peer-review system has now expanded to include review of packages implementing statistical routines and algorithms. … Read more

Categories R Tags ExcerptFavorite

`crossvalidation` on R-universe, plus a classification example

I had to rename my R package crossval – generic functions for cross-validation – to crossvalidation, because its name was clashing with an existing CRAN R package’s named crossval. Here is how to install crossvalidation: options(repos = c( techtonique = ‘https://techtonique.r-universe.dev’, CRAN = ‘https://cloud.r-project.org’)) install.packages(“crossvalidation”) What is the R-universe mentioned in the previous code snippet? … Read more

Categories R Tags ExcerptFavorite

Microsoft365R: testers wanted

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. by Hong Ooi Microsoft365R author here. I’ve just updated the package on GitHub with … Read more

Categories R Tags ExcerptFavorite

How to perform ANCOVA in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. ANCOVA in R, Analysis of covariance is used to measure the … Read more

Categories R Tags ExcerptFavorite

ggdist: Make a Raincloud Plot to Visualize Distribution in ggplot2

[This article was first published on business-science.io, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The ggdist package is a ggplot2 extension that is made for visualizing distributions … Read more

Categories R Tags ExcerptFavorite

Efficient R: Performant data.frame constructors

[This article was first published on shikokuchuo{net}, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. sha256 1 eb5d71529ab540bc4865c181a1129e03186e0959c76196a9fbc0c2a16c767856 Shikokuchuo About as.data.frame data.frame() or as.data.frame() are such ubiquitous functions … Read more

Categories R Tags ExcerptFavorite

Handling Splits with SwimmeR

Splits are generally reported in one of two formats, cumulative or lap. When working with data I find lap format to be more useful, but what’s most useful is to have all splits in the same format. This post discusses how to do just that with data from swimming and track. First step is to … Read more

Categories R Tags ExcerptFavorite

Top 3 Coding Best Practices from the Shiny Contest

[This article was first published on RStudio Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Recently we wrapped up another round of the Shiny Contest, and, as … Read more

Categories R Tags ExcerptFavorite

Machine learning in a hurry: what I’ve learned from the SLICED ML competition

[This article was first published on Variance Explained, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. This summer I’ve been competing in the SLICED machine learning competition, where … Read more

Categories R Tags ExcerptFavorite

ConfusionTableR has made it to CRAN

In my dusty GitHub repository, sitting there, was a gem of a tool for tidying the outputs of a machine learning classification model into a record and row-level view for storage in databases. It has taken me time to get this to CRAN, as the dreaded closure, not subsettable, plagues me on the CRAN checks … Read more

Categories R Tags ExcerptFavorite

How to Set Up ShinyProxy to Host Shiny Apps

[This article was first published on R – Hosting Data Apps, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. ShinyProxy requires a Java runtime, and Docker to run … Read more

Categories R Tags ExcerptFavorite

Why use Purrr?

This week we spoke to Xinye Li, Head of Data Science at Mango Solutions, to talk about his career thus far and what people can expect to learn at the ‘Functional Programming with Purrr’ EARL workshop. Hi Xinye, thanks for joining me today. Could you tell me about your career and what you do at … Read more

Categories R Tags ExcerptFavorite

10 new books added to Big Book of R

21 July 2021 In this post I’m highlighting 10 new books added to Big Book of R. Thank you to the authors for writing them and thanks to R Posts you might have missed who I got a bunch of these from. Hiring Data Scientists and Machine Learning Engineers Roy Keyes It’s quite possible that … Read more

Categories R Tags ExcerptFavorite

Affimer Proteins: Next Generation Sequencing Data Analysis (Part 2)

Affimer Proteins Amino acid translation and finding Affimer loop regions In part 1 we looked at what Affimer molecules are and started to look at basic data analysis in R relating to DNA sequences. Next we’ll go deeper into the data, searching for specific Affimer molecule loops, and looking at how different ‘reading frames’ can … Read more

R Ladies Montevideo, Uruguay, Explains How to Create a High Quality Conference in the Southern Hemisphere

[This article was first published on R Consortium, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. R Consortium talks to Daniela Vázquez of R Ladies Montevideo on how … Read more

Categories R Tags ExcerptFavorite

Time Travel with py datatable 1.0

[This article was first published on novyden, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. R package data.table has become a tool of choice when working with big … Read more

Categories R Tags ExcerptFavorite

Advice to Aspiring Sports Analytics Professionals

[This article was first published on RStudio Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. “How do I get started?” While not asked explicitly, this question summarizes … Read more

Categories R Tags ExcerptFavorite

Advancing into Analytics: the reading list

[This article was first published on Stringfest Analytics, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. You can learn a lot about a book by reviewing its bibliography: … Read more

Categories R Tags ExcerptFavorite

LondonR: July edition

The next edition of LondonR online will take place on Tuesday the 27th of July from 4pm (BST). Tickets are free for attendees and you can register here for a place! This next LondonR will have three presenters all sharing their work on using R stats in the real world. The first presenter joining us … Read more

Categories R Tags ExcerptFavorite

Webinars: Practical Advice for R in Production

Many organisations have a robust infrastructure that allows their data science teams to provide, fast and reliable insights. But for many groups, they are just starting down this path. We, Jumping Rivers, have partnered with RStudio to launch a two-part webinar series which examines and explores the usage of R in production environments. The first … Read more

Categories R Tags ExcerptFavorite

Little useless-useful R functions – Drawing calendar

[This article was first published on R – TomazTsql, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. This time around, since first half of the 2021 is behind … Read more

Categories R Tags ExcerptFavorite

Forecasting Many Time Series (Using NO For-Loops)

[This article was first published on business-science.io, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Spending too much time on making iterative forecasts? I’m super excited to introduce … Read more

Categories R Tags ExcerptFavorite

The essential functions of R cheatsheet

[This article was first published on R on R (for ecology), and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. 👇 Download link is at the bottom of the … Read more

Categories R Tags ExcerptFavorite

Bootstrapping the Zero Curve from IRS Swap Rates using R code

#=========================================================================# # Financial Econometrics & Derivatives, ML/DL using R, Python, Tensorflow   # by Sang-Heon Lee  # # https://kiandlee.blogspot.com #————————————————————————-# # Generate Libor 3M IRS zero curve by using Bootstrapping #=========================================================================# graphics.off()  # clear all graphs rm(list = ls()) # remove all files from your workspace #————————————————————————– # Functions – Definition – Start #————————————————————————– # IRS swap pricer f_zero_pricer_IRS – function(     fixed_rate,                   # fixed rate     vd.fixed_date, vd.float_date, # date for two legs     vd.zero_date,  v.zero_rate,   # zero curve (dates, rates)     d.spot_date,                  # spot date     no_amt) {                     # nominal principal amount          #———————————————————-     # 0) Preprocessing     #———————————————————-          # convert spot date from date(d) to numeric(n)     n.spot_date – as.numeric(d.spot_date)          # Interpolation of zero curve     vn.zero_date – as.numeric(vd.zero_date)     f_linear – approxfun(vn.zero_date, v.zero_rate,                            method=“linear”)     vn.zero_date.inter – n.spot_date:max(vn.zero_date)     v.zero_rate.inter  – f_linear(vn.zero_date)          # number of CFs     ni – length(vd.fixed_date)     nj – length(vd.float_date)          # output dataframe with CF dates and its interpolated zero     df.fixed = data.frame(d.date = vd.fixed_date,                           n.date = as.numeric(vd.fixed_date))     df.float = data.frame(d.date = vd.float_date,                           n.date = as.numeric(vd.float_date))          #———————————————————-     #  1)  Fixed Leg     #———————————————————-          # zero rate for discounting     df.fixed$zero_DC = f_linear(as.numeric(df.fixed$d.date))          # discount factor     df.fixed$DF – exp(–df.fixed$zero_DC*                        (df.fixed$n.date–n.spot_date)/365) … Read more

Categories R Tags ExcerptFavorite

COUNTIF Function in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. COUNTIF Function in R, As we know if we want to … Read more

Categories R Tags ExcerptFavorite

Affimer Proteins: Next Generation Sequencing Data Analysis Part 1

Affimer Proteins Affimer Molecules, antibodies, and searching within DNA sequences In this blog series, I’ll describe a specific data analysis problem using the R programming language. Namely, the analysis of biological data from a Next Generation Sequencing machine, relating to a specific type of molecule called an Affimer protein. A reasonable working knowledge of R … Read more

Mixing centered and non-centered parameterizations in a hierarchical model with PyMC3

[This article was first published on Posts | Joshua Cook, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Background In his post on hierarchical models, Michael Betancourt goes … Read more

Categories R Tags ExcerptFavorite

The Elon Musk Tweet Effect on Dogecoin (DOGE)

[This article was first published on Quantargo Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The Elon Musk Tweet Effect on Dogecoin (DOGE) Unveil the Dogefather Elon … Read more

Categories R Tags ExcerptFavorite

Using R — Packaging a C library in 15 minutes

Yes, this post condenses 50+ hours of learning into a 15 minute tutorial.  Read ’em and weep.  (That is, you read while I weep.) OK.  For the last week I’ve been learning how to call C code as documented in previous posts:  Calling C code “Hello World!”, .Call(“hello”) and Calling C code with Rcpp.  Now comes that task that … Read more

Categories R Tags ExcerptFavorite

Using R — Calling C code with Rcpp

In two previous posts we described how R can call C code with .C() and the more complex yet more robust option of calling C code with .Call().  Here we will describe how the Rcpp package can be used to greatly simplify your C code without forcing you to become expert in C++. First off, kudos to Dirk Eddelbuettel and Romain … Read more

Categories R Tags ExcerptFavorite

Using R – .Call(“hello”)

In an introductory post on R APIs to C code, Calling C Code ‘Hello World!’, we explored the .C() function with some ‘Hello World!’ baby steps.  In this post we will make a leap forward by implementing the same functionality using the .Call() function. Is .Call() better than .C()? A heated but friendly conversation took place … Read more

Categories R Tags ExcerptFavorite

Using R – Calling C code ‘Hello World!’

One of the reasons that R has so much functionality is that people have incorporated a lot of academic code written in C, C++, Fortran and Java into various packages.  Libraries written in these languages are often both robust and fast.  If you are using R to support people in a particular field, you may … Read more

Categories R Tags ExcerptFavorite

Data Structures – Tabular vs. Relational

With enough effort it is possible to fit a square peg into a round hole.  But we have all learned — sometimes more than once — that it is much easier if peg and hole have the same shape. Data managers also need to carefully consider the shape of their data to determine which data structures best … Read more

Categories R Tags ExcerptFavorite

Logging and error handling in operational systems

Operational systems, by definition, need to work without human input. Systems are considered “operational” after they have ben thoroughly tested and shown to work properly with a variety of input. However, no software is perfect and no real-world system operates with 100% availability or 100% consistent input. Things occasionally go wrong – perhaps intermittently. In … Read more

Categories R Tags ExcerptFavorite

multinomial but unique

[This article was first published on R – Xi’an’s Og, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. A quick riddle from the Riddler, where the multinomial M(n¹,n²,100-n¹-n²) … Read more

Categories R Tags ExcerptFavorite

When k-means clustering fails

Letting the computer automatically find groupings in data is incredibly powerful and is at the heart of “data mining” and “machine learning”. One of the most widely used methods for clustering data is k-means clustering. Unfortunately, k-means clustering can fail spectacularly as in the example below. Centroid-based clustering algorithms work on multi-dimensional data by partitioning data points … Read more

Categories R Tags ExcerptFavorite