المشاركات

عرض المشاركات من أبريل, 2023

To lend funds or not to lend is the question?

صورة
To lend funds or not to lend is the question? The following analysis is based on a publicly available dataset hosted at Kaggle. The full code is located on my github EXPLORATORY DATA ANALYSIS The dataset is a single csv file. It has a shape of 42... Continue reading: To lend funds or not to lend is the question? http://dlvr.it/SnJ90Q

WrappR for Rstudio: Use Keyboard Shortcuts to Wrap Highlighted Text With Custom Code

Introduction: While coding in RStudio I wanted to use the RStudio keyboard shortcuts to wrap functions and custom lines of code around datasets, code, or objects in the editor pane.  I could not find what I wanted after reviewing various packages and solutions.  Combining the RStudio API, the shrtcts package, ... Continue reading: WrappR for Rstudio: Use Keyboard Shortcuts to Wrap Highlighted Text With Custom Code http://dlvr.it/SnJ8lJ

March 2023: “Top 40” New CRAN Packages

صورة
Accounting debkeepr v0.1.1: Provides tools to analyze historical, non-decimal currencies and value systems that use tripartite or tetrapartite systems such as pounds and shillings in the context of double-entry bookkeeping. See the Getting Started guide and the vignettes Analysis of Richard Dafforne’s Journal and Ledger and Transactions in Richard ... Continue reading: March 2023: “Top 40” New CRAN Packages http://dlvr.it/SnG0LW

‘Data analysis with tidyverse’ workshop

صورة
Become professional at data analysis with tidyverse in R on May 10th! Learn how to extract, manipulate and explore your data with readable, streamlined and professional code using best-practices from the tidyverse R universe, such as those included ... Continue reading: ‘Data analysis with tidyverse’ workshop http://dlvr.it/SnC7l3

Building models with {shiny} and {tidyAML} Part 2

صورة
Introduction Yesterday I spoke about building tidymodels models using my package {tidyAML} and {shiny}. I have made an update to it, and will continue to make updates to it this week. I have added all of the supported engines for regression prob... Continue reading: Building models with {shiny} and {tidyAML} Part 2 http://dlvr.it/Sn84tM

rOpenSci Champions Program Teams: Meet Bilikisu Wunmi Olatunji and Christina Maimone

We designed the rOpenSci Champions Program with a mentorship aspect. Mentoring plays a significant role in the growth and development of both mentors and mentees alike. In our program, each Champion has a mentor who accompanies them during their train... Continue reading: rOpenSci Champions Program Teams: Meet Bilikisu Wunmi Olatunji and Christina Maimone http://dlvr.it/Sn50pW

Exploring Distributions with {shiny}, {TidyDensity} and {plotly} Part 5

صورة
Introduction I have been writing about using the {TidyDensity} package with shiny for the last few posts, and this one is the last. This post will go over the app and discuss how to change the output of the graph from a ggplot2 object into a plo... Continue reading: Exploring Distributions with {shiny}, {TidyDensity} and {plotly} Part 5 http://dlvr.it/Sn3Ntq

RMarkdown and Quarto – Mastering the Basics workshop

Learn how to use RMarkdown and Quarto! Join our workshop on RMarkdown and Quarto – Mastering the Basics which is a part of our workshops for Ukraine series.  Here’s some more info:  Title: RMarkdown and Quarto – Mastering the Basics Date: Thursday, May 25th, 18:00 – 20:00 CEST (Rome, Berlin, Paris timezone) Speaker: Indrek ... Continue reading: RMarkdown and Quarto – Mastering the Basics workshop http://dlvr.it/Sn0Sk5

Rython tips and tricks – Snippets

صورة
R or Python? who cares! Which editor? now that’s a different story. I like Rstudio for many reasons. Outside the personal, Rstudio allows you to write both R + Python = Rython in the same script. Apart from that, the editor’s level of complexity is well-balanced, not functionality-overkill like some, ... Continue reading: Rython tips and tricks – Snippets http://dlvr.it/Smxqr5

R for Everyone: Analytical Superpowers in under 10 Minutes!

صورة
R is a powerful programming language and environment for statistical computing and graphics. In this post, we will provide a quick introduction to R using the famous iris dataset. We will cover loading data, exploring the dataset, basic data manipulation, and plotting. By the end, you should have a good ... Continue reading: R for Everyone: Analytical Superpowers in under 10 Minutes! http://dlvr.it/SmwvWd

rOpenSci News Digest, April 2023

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 Meeting the stars of the R-universe: Athanasia Monika Mowinckel Kno... Continue reading: rOpenSci News Digest, April 2023 http://dlvr.it/SmwvM3

powering a probability [a Bernoulli factory tale]

Starting from an X validated question on finding an unbiased estimator of an integral raised to a non-integer power, I came across a somewhat interesting Bernoulli factory solution! Thanks to Peter Occil’s encyclopedic record of cases, pointing out to Mendo’s (2019) solution for functions of ρ that can be expressed ... Continue reading: powering a probability [a Bernoulli factory tale] http://dlvr.it/Smtntn

Exploring Distributions with {shiny} and {TidyDensity} Part 3

صورة
Introduction In the previous post we allowed users to choose a distribution and a plot type. Now, we want to allow users to download a .csv file of the data that is generated. In the UI, we added a downloadButton with outputId = "download_data" ... Continue reading: Exploring Distributions with {shiny} and {TidyDensity} Part 3 http://dlvr.it/Smqyz9

rOpenSci Champions Program Teams: Meet Marcos Prunello and Lukas Wallrich

We designed the rOpenSci Champions Program with a mentorship aspect. Mentoring plays a significant role in the growth and development of both mentors and mentees alike. In our program, each Champion has a mentor who accompanies them during their train... Continue reading: rOpenSci Champions Program Teams: Meet Marcos Prunello and Lukas Wallrich http://dlvr.it/SmmvsM

Exploring Distributions with {shiny} and {TidyDensity}

Introduction Shiny is an R package that allows you to build interactive web applications using R code. TidyDensity is an R package that provides a tidyverse-style interface for working with probability density functions. In this tutorial, we’ll ... Continue reading: Exploring Distributions with {shiny} and {TidyDensity} http://dlvr.it/SmjqXb

quantmod_0.4.22 on CRAN

An updated version of quantmod is now on CRAN. It adds functions HL(), is.HL(), and has.HL() to check for ‘high’ and ‘low’ price columns. It also makes accessing Yahoo Finance price, dividend, and split data more robust. getSymb... Continue reading: quantmod_0.4.22 on CRAN http://dlvr.it/SmgB2Z

Did you ask ChatGPT about who you are?

صورة
Bug fixing using ChatGPT Continue reading: Did you ask ChatGPT about who you are? http://dlvr.it/Smd90n

Start Creating Vanilla JS WebR Apps With Less Inertia

صورة
WebR has a template for React, but I’m not a fan of it or Vue (a fact longtime readers are likely tired of hearing right about now). It’s my opinion and experience that Lit webcomponents come closer to “bare metal” webcomponents, which means the “lock-in” with Lit is ... Continue reading: Start Creating Vanilla JS WebR Apps With Less Inertia http://dlvr.it/SmbprY

11 tricks to level up your rmarkdown documents

For a while I wanted to write a post to compile some of the tricks I’ve learnt over the years of using rmarkdown. I also wanted other people’s input so I asked for suggestions on Mastodon. So here are the 12 tips I decided to include in no particula... Continue reading: 11 tricks to level up your rmarkdown documents http://dlvr.it/SmZsqw

Sentiment Analysis Using Google Translate (Pt. 1)

Inspired by TidyTuesday Some of the the R data science community participate in a weekly challenge called “Tidy Tuesday,” where an interesting data set is presented for analysis but mostly visualization. There are some tremendous examples of beau... Continue reading: Sentiment Analysis Using Google Translate (Pt. 1) http://dlvr.it/SmYhXH

Lessons Learned with shiny.benchmark: Improving the Performance of a Shiny Dashboard

صورة
The attention span of every user is very valuable. When they are forced to use an application that feels sluggish, their curiosity and motivation to use the product or service disappears fast.  Getting ahead of these performance issues becomes vital, and obfuscates any improvement in the interface and functionality of ... Continue reading: Lessons Learned with shiny.benchmark: Improving the Performance of a Shiny Dashboard http://dlvr.it/SmWbrV

rOpenSci Champions Program Teams: Meet Pao Corrales and Adam Sparks

We designed the rOpenSci Champions Program with a mentorship aspect. Mentoring plays a significant role in the growth and development of both mentors and mentees alike. In our program, each Champion has a mentor who accompanies them during their train... Continue reading: rOpenSci Champions Program Teams: Meet Pao Corrales and Adam Sparks http://dlvr.it/SmSrRv

Extending Data Frames

library(dplyr) Extending Data Frames in R R is a commonly used language for data science and statistical computing. Foundational to this is having data structures that allow manipulation of data with minimal effort and cognitive load. One of t... Continue reading: Extending Data Frames http://dlvr.it/SmPtKg

The Complete Story Of How I Went From A Mechanical Engineer To The Director Of Sales Engineering Using Time Series Forecasting

صورة
Part 1: Before I Knew What Data Science Was When I graduated from Penn State in 2007, I spent the first couple of years as a mechanical engineer learning all there was to know about engineering valves. Eventually, I landed at a company called Bonney ... Continue reading: The Complete Story Of How I Went From A Mechanical Engineer To The Director Of Sales Engineering Using Time Series Forecasting http://dlvr.it/SmMnVS

collapse and the fastverse: Reflections on the Past, Present and Future

صورة
Last week collapse reached 1M downloads off CRAN. This is a milestone that was largely unforeseen for a package that started 4 years ago as a collection of functions intended to ease the R life of an economics master student. Today, collapse provid... Continue reading: collapse and the fastverse: Reflections on the Past, Present and Future http://dlvr.it/SmLvb2

Styling Tables for Excel with {styledTables}

Introduction In the analytics realm whether some like it or not, Excel is huge and maybe King. This is due to the fact of the shear volume of people using it. Microsoft has positioned Excel well in this situation, but, that does not mean we cann... Continue reading: Styling Tables for Excel with {styledTables} http://dlvr.it/SmLNcN

Predicting the Real USD/TRY Rates with MARS

صورة
The ongoing debate recently in Turkey is that the Turkish government has suppressed US Dollar/Turkish Lira exchange rates (USD/TRY) to prevent economic turmoil. Many authorities in the business, especially exporters, think that the USD/TRY parity should be in the range of 24-25 Turkish Lira. To look through ... Continue reading: Predicting the Real USD/TRY Rates with MARS http://dlvr.it/SmKmks

WooCommerce Administrator with R

صورة
When working with WooCommerce, you have access to a powerful and robust product that offers a variety of benefits. Not only is it free and supported by a large community, but it also has strong SEO capabilities and a vast selection of plugins to enhance functionality. Additionally, the WooCommerce admin ... Continue reading: WooCommerce Administrator with R http://dlvr.it/SmHyN0

A Tidymodels Tutorial

صورة
As I’ve started working on more complicated machine learning projects, I’ve leaned into the tidymodels approach. Tidymodels is a highly modular approach, and I felt it reduced the number of errors, especially when evaluating many machine models an... Continue reading: A Tidymodels Tutorial http://dlvr.it/SmHyK1

Progress on R-spatial evolution, Apr 2023

صورة
sp evolution status Splitting R_LIBS ASDAR examples using sf or terra Which sf or terra methods or functions match retiring methods or functions? Conserving sp workflows "SpatVector" coercion "sf" "Spati... Continue reading: Progress on R-spatial evolution, Apr 2023 http://dlvr.it/SmGtJh

Introducing WebRIDEr: The WebR “IDE”-ish REPL You Didn’t Know You Needed

The official example WebR REPL is definitely cool and useful to get the feel for WebR. But, it is far from an ideal way to deal with it interactively, even as just a REPL. As y’all know, I’ve been conducing numerous experiments with WebR and various web technologies. ... Continue reading: Introducing WebRIDEr: The WebR “IDE”-ish REPL You Didn’t Know You Needed http://dlvr.it/SmGTbz

Heatmap formatting of a table with ‘DT’

صورة
Googling “heatmap format excel” returns a lot of results. Here we will see how to do a heatmap formatting with a DT table in R. The dataset we use provides the average monthly temperatures o... Continue reading: Heatmap formatting of a table with ‘DT’ http://dlvr.it/SmFKx9

Unit Testing Analytics Code

صورة
This post is part of a series called The Missing Semester of Your DS Education. Introduction Unit testing was a concept I had never even heard of before I started my second data science job. It never came up in any of my college stati... Continue reading: Unit Testing Analytics Code http://dlvr.it/SmCNmY

Making predictions from GAMs in R explained by an 18th century author

Making predictions from GAMs in R explained by an 18th century author As explained by ChatGPT with some minor edits by me. This post is an example for my post “Tips for using chatGPT to learn R” Pray, let us first summon the mgcv package, that we may... Continue reading: Making predictions from GAMs in R explained by an 18th century author http://dlvr.it/Sm9Q7g

That’ll be ₱1 billion please

صورة
The pandemic provoked a lot of experimentation in Philippine urban transport policy. Some were sensible, like rationalizing bus stops along EDSA. Some were, uh, destined to be hallmarks of the time. One of the more forward-thinking was the elevation of bicycles as a bona fide mode of transport. What’s ... Continue reading: That’ll be ₱1 billion please http://dlvr.it/Sm6tCH

Recent advances in extreme value theory

صورة
Recent advances in extreme value theory Thursday, April 20th, 6:00 PT / 9:00 ET / 15:00 CET Extreme value theory is concerned with the accurate statistical assessment of the risk of rare events. Such extreme events have small occurrence probabiliti... Continue reading: Recent advances in extreme value theory http://dlvr.it/Sm45SG

How r-universe searches for packages on CRAN / Bioconductor

How packages appear in r-universe Last month we explained how r-universe makes it easy to search and browse through the countless R packages, articles, and datasets to let you discover and learn new things. We are continuously growing this database b... Continue reading: How r-universe searches for packages on CRAN / Bioconductor http://dlvr.it/Sm1QKr

Repeated measures with perennial crops

In this post, I want to discuss a concept that is often mistaken by some of my collegues. With all crops, we are used to repeating experiments across years to obtain multi-year data; the structure of the resulting dataset is always the same and it i... Continue reading: Repeated measures with perennial crops http://dlvr.it/SlyPF1

How to use Bootstrap 5 popovers in Shiny applications

Creating custom user interfaces with {shiny} and {bslib} has never been easier. Using {bslib} it is also incredibly simple to choose and switch between versions of the underlying Bootstrap library that powers the UI, to use many of the Bootswatch theme... Continue reading: How to use Bootstrap 5 popovers in Shiny applications http://dlvr.it/SlvSs2

Tidy Tuesday: Daylight Savings Time

صورة
This week’s TidyTuesday is about the timezone data from IANA timezone database. library(tidytuesdayR) library(tidyverse) library(skimr) library(ggthemes) library(gt) library(lubridate) library(skimr) library(lutz) library(maps) library(scales) library(sf) library(ggimage) The history of this database is fascinating. It is used by many computer ... Continue reading: Tidy Tuesday: Daylight Savings Time http://dlvr.it/SlsFzq

Computing Rank Dependent Utility in R: Getting More out with RDU_Data()

صورة
In a previous blog post I discussed how we can compute rank dependent utility in R. Though this function was quite exciting for myself as computing rank dependent utilty by hand is quite labor intensive, I saw the function as limiting in the sense that I was suppressing all the ... Continue reading: Computing Rank Dependent Utility in R: Getting More out with RDU_Data() http://dlvr.it/Slq8RL