المشاركات

عرض المشاركات من يناير, 2024

Time Flies? Time Travels! Adding Days to Dates in R (Like a Pro)

Introduction Ever wished you could skip ahead a few days for that weekend getaway, or rewind to relive a magical moment? While real-life time travel remains a sci-fi dream, in R, adding days to dates is a breeze! Today, we’ll explore both base R... Continue reading: Time Flies? Time Travels! Adding Days to Dates in R (Like a Pro) http://dlvr.it/T27fy9

PowerQuery Puzzle solved with R

صورة
#151–152PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #151Today we simplified log of people work. They just written down date and time of start and end. Not rea... Continue reading: PowerQuery Puzzle solved with R http://dlvr.it/T25JTK

Binary logistic regression in R

صورة
Introduction Linear versus logistic regression Univariate versus multivariate logistic regression Data Binary logistic regression in R Univariate binary logistic regression Quantitative independent variable Qualitative independent variable Multivariate binary logistic regression Interaction Model selection Quality of a model Validity of the predictions Accuracy Sensitivity and specificity AUC and ROC curve Reporting ... Continue reading: Binary logistic regression in R http://dlvr.it/T25JBg

Avoiding reactivity in a Shiny app

Sometimes the Shiny reactivity is not desirable. Assume for example the Shiny app renders a plot and the title of this plot is given by the user with a text input. So in the Shiny UI you have ... Continue reading: Avoiding reactivity in a Shiny app http://dlvr.it/T25Hzb

Using the ‘RowReorder’ extension in a Shiny app

The ‘RowReorder’ extension of datatables is available in the DT package. This extension allows to reorder the rows of a DT table by dragging and dropping. However, if you enable this extension in a Shiny ... Continue reading: Using the ‘RowReorder’ extension in a Shiny app http://dlvr.it/T23q1C

How to Extract Month from Date in R (With Examples)

Introduction Greetings fellow R enthusiasts! Today, we’re diving into a fundamental task: extracting the month from a date in R. Whether you’re new to R or a seasoned pro, understanding how to manipulate dates is essential. We’ll explore two pop... Continue reading: How to Extract Month from Date in R (With Examples) http://dlvr.it/T23FNC

mirai Parallel Clusters

صورة
A surprise I came to write this post because I was surprised by its findings. The seed for it came from a somewhat obscure source: the Tokyo.R slack channel. This is actually a fairly vibrant R community. In any case, there was a post by an R user s... Continue reading: mirai Parallel Clusters http://dlvr.it/T22BJt

[Rmarkdown] Automate word document generation using Rmarkdown

Zhenguo Zhang's Blog /2024/01/28/rmarkdown-automate-word-document-generation-using-rmarkdown/ - I knew that Rmarkdown was very power to generate all kinds of document formats such as html, pdf, word, powerpoint, etc, but until recently, I have never ... Continue reading: [Rmarkdown] Automate word document generation using Rmarkdown http://dlvr.it/T229yd

Exploring Non-linear Effects: Visual CATE Analysis of Continuous Confounders, Binary Exposures, and Continuous Outcomes

صورة
It was enjoyable to visualize the non-linear relationship with interaction and observe the corresponding changes in CATE. If one understands the underlying equation, it’s possible to easily obtain the ATE using calculus. Lastly, adopting Richard... Continue reading: Exploring Non-linear Effects: Visual CATE Analysis of Continuous Confounders, Binary Exposures, and Continuous Outcomes http://dlvr.it/T229Yp

Creating R packages for data analysis and reproducible research workshop

Join our workshop on Creating R packages for data analysis and reproducible research, which is a part of our workshops for Ukraine series!  Here’s some more info:  Title: Creating R packages for data analysis and reproducible research Date: Thursday, February 29th, 18:00 – 20:00 CET (Rome, Berlin, Paris timezone) Speaker: Fred Boehm ... Continue reading: Creating R packages for data analysis and reproducible research workshop http://dlvr.it/T20VwV

Introducing cpp11armadillo: R and Armadillo integration using the header-only cpp11 R package

The goal of cpp11armadillo is to provide a novel approach to use the Armadillo C++ library by using the header-only cpp11 R package and to simplify things for the end-user. The idea is to pass matrices/vectors from R to C++, write pure C++/Armadi... Continue reading: Introducing cpp11armadillo: R and Armadillo integration using the header-only cpp11 R package http://dlvr.it/T1ySsz

A new graphlayouts release and an update on edgebundle

صورة
Last week, a new version of the R package graphlayouts was released on CRAN. While I will walk through the (minor) updates, I also want to talk about the ups and downs of package maintenance. I am developing packages since 2017, but only when I ... Continue reading: A new graphlayouts release and an update on edgebundle http://dlvr.it/T1ySf5

rOpenSci News Digest, January 2024

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 R-Universe The R-Universe now builds MacOS ARM64 binaries for use o... Continue reading: rOpenSci News Digest, January 2024 http://dlvr.it/T1x7NJ

2024 RUGS Program Progress: Reviewing Grants and Empowering R Communities

صورة
Quick update on the 2024 R User Groups (RUGS) Program. The review of the first batch of grants is in progress, marking the beginning of the awarding phase. But there’s... The post 2024 RUGS Program Progress: Reviewing Grants and Empowering R Communities appeared first on R Consortium. Continue reading: 2024 RUGS Program Progress: Reviewing Grants and Empowering R Communities http://dlvr.it/T1x7Dc

User Tracking in Shiny Apps: Leveraging {shiny.telemetry} for Comprehensive User Distinction

صورة
Delving into the realm of Shiny app development, the path to success often proves to be a complex and evolving landscape. Whether you’re a seasoned developer, a data enthusiast, or a tech-savvy manager, the obstacles of developing and delivering compelling applications remain. In this dynamic environment, solutions like {shiny.... Continue reading: User Tracking in Shiny Apps: Leveraging {shiny.telemetry} for Comprehensive User Distinction http://dlvr.it/T1x76k

simulating Gumbel’s bivariate exponential distribution

صورة
A challenge interesting enough for a sunny New Year morn, found on X validated, namely the simulation of a bivariate exponential distribution proposed by Gumbel in 1960, with density over the positive quadrant in IR² Although there exists a direct approach based on the fact that the marginals are Exponential distributions ... Continue reading: simulating Gumbel’s bivariate exponential distribution http://dlvr.it/T1MD2B

XGBoost: Tuning the Hyperparameters (My Secret 2 Step Process in R)

صورة
Hey guys, welcome back to my R-tips newsletter. For years, I was hyperparameter tuning XGBoost models wrong. In 3 minutes, I’ll share one secret that took me 3 years to figure out. When I did, it cut my training time 10X. Let’s dive in. Table of Conte... Continue reading: XGBoost: Tuning the Hyperparameters (My Secret 2 Step Process in R) http://dlvr.it/T1KYFF

Release: `atrrr`, a wrapper for the AT protocol behind ’Bluesky’

صورة
I’m happy to announce that atrrr has made its way to CRAN. The purpose of atrrr is to communicate with the Authenticated transfer protocol (atproto for short), which powers the Twitter replacement social media site Bluesky. I think there are two thi... Continue reading: Release: `atrrr`, a wrapper for the AT protocol behind ’Bluesky’ http://dlvr.it/T1Jycl

Call for Speakers: ShinyConf 2024 by Appsilon

صورة
Excitement is building as we approach ShinyConf 2024, organized by Appsilon. We are thrilled to announce the Call for Speakers. This is a unique opportunity for experts, industry leaders, and enthusiasts to disseminate their knowledge, insights, and expertise to a diverse and engaged audience. Why Speak at ShinyConf? Becoming a speaker ... Continue reading: Call for Speakers: ShinyConf 2024 by Appsilon http://dlvr.it/T1HZZ2

Security Headers for Shiny Applications

صورة
Over the last few years, we have been performing audits on Posit set-ups, Shiny Applications and general R set-ups. One of our standard checks is to examine the server headers of a Shiny Server. Numerous websites do this check for you, but as we... Continue reading: Security Headers for Shiny Applications http://dlvr.it/T1HDkp

Rstats RSE January Digest

صورة
A Happy Log, near Echo Lake, California. Fuji X100V, Nicholas Tierney. I’ve been trying to read a bit more widely about R programming and other features of programming lately. I’ve seen some great newsletters from people like Bob Rudis i... Continue reading: Rstats RSE January Digest http://dlvr.it/T1GJFR

Some Goals for 2024

صورة
Flowers in the Victorian Alps, Ricoh GRiii, Nicholas Tierney. To help me be more accountable, and also work out how to plan my year and work out what’s important to me, I thought I’d share some of my goals for 2024. Writing it all down i... Continue reading: Some Goals for 2024 http://dlvr.it/T1GJ3d

Retrieving data from the bottom of the ocean:

When advising students about their career goals, paths forward, and expectations; I often recommend that they consider learning a program language. While the language itself depends on the goals and background of the person, being able to work directly... Continue reading: Retrieving data from the bottom of the ocean: http://dlvr.it/T1F8Jm

Exploring the Peaks: A Dive into the Triangular Distribution in TidyDensity

صورة
Introduction Welcome back, fellow data enthusiasts! Today, we embark on an exciting journey into the world of statistical distributions with a special focus on the latest addition to the TidyDensity package – the triangular distribution. Tightly... Continue reading: Exploring the Peaks: A Dive into the Triangular Distribution in TidyDensity http://dlvr.it/T1DK0b

Probably More Than Chance: A Beginner’s Guide to Probability Distributions in R

صورة
IntroductionWelcome to “Probably More Than Chance: A Beginner’s Guide to Probability Distributions in R.” In this journey, we’ll explore the intriguing world of probability distributions, an essential concept in statistics and data analysis. These dist... Continue reading: Probably More Than Chance: A Beginner’s Guide to Probability Distributions in R http://dlvr.it/T1Cg1p

Goodbye Complicated Dropdowns: Welcome to the New Era of Human Readable Filters

صورة
Have you ever tried to book a flight and found yourself overwhelmed by the endless dropdown menus? You’re not alone. We’ve all been there, clicking through multiple options, often unsure of what to choose. Not to mention, their placement is often inconsistent across different sites, which makes it ... Continue reading: Goodbye Complicated Dropdowns: Welcome to the New Era of Human Readable Filters http://dlvr.it/T1CfcC

An overview of the rsi R package for retrieving satellite imagery and calculating spectral indices

صورة
Introduction rsi is a recent R package developed by Michael Mahoney and funded by Permian Global Research. It offers features that simplify the process of acquiring spatial data from STAC (SpatioTemporal Asset Catalog) and calculating spectral in... Continue reading: An overview of the rsi R package for retrieving satellite imagery and calculating spectral indices http://dlvr.it/T19rVm

New Horizons for TidyDensity: Version 1.3.0 Release

Introduction The latest release of the TidyDensity R package brings some major changes and improvements that open up new possibilities for statistical analysis and data visualization. Version 1.3.0 includes breaking changes, new features, and a ... Continue reading: New Horizons for TidyDensity: Version 1.3.0 Release http://dlvr.it/T19rK9

PowerQuery Puzzle solved with R

صورة
#145–146PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #145This time our task is to summarise sales from three stores, but there are strings attached. They shoul... Continue reading: PowerQuery Puzzle solved with R http://dlvr.it/T18rVt

R Solution for Excel Puzzles

صورة
Puzzles no. 359–363PuzzlesAuthor: ExcelBIAll files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #359Just like in this dragon sometimes numbers are a sum of many consecutive elements. And todays task is to discover which sequence of numbers are valid ... Continue reading: R Solution for Excel Puzzles http://dlvr.it/T17LpH

Financial Assistance is Available for Your R User Group in 2024!

صورة
The R Consortium is excited to open the doors to the 2024 RUGS Program, starting January 8th, 2024! We are committed to supporting R User Groups (RUGS) worldwide in your... The post Financial Assistance is Available for Your R User Group in 2024! appeared first on R Consortium. Continue reading: Financial Assistance is Available for Your R User Group in 2024! http://dlvr.it/T17Ldx

Conquering Daily Data: How to Aggregate to Months and Years Like a Pro in R

Introduction Taming the beast of daily data can be daunting. While it captures every detail, sometimes you need a bird’s-eye view. Enter aggregation, your secret weapon for transforming daily data into monthly and yearly insights. In this post, ... Continue reading: Conquering Daily Data: How to Aggregate to Months and Years Like a Pro in R http://dlvr.it/T16n8C

One billion row challenge using base R

صورة
One of my new years resolutions is to blog a bit more on the random shenanigans I do with R. This is one of those.1 The One Billion Row challenge by Gunnar Morling is as follows: write a Java program for retrieving temperature measurement value... Continue reading: One billion row challenge using base R http://dlvr.it/T16Qj6

Optimizing the parameters of the spatial kinetic Ising model to simulate spatial patterns

صورة
The spatial kinetic Ising model is a simple model of spatial patterns that can be used to simulate the evolution of spatial patterns over time. Its two main parameters are B and J, which control the external pressure and the local autocorrelation... Continue reading: Optimizing the parameters of the spatial kinetic Ising model to simulate spatial patterns http://dlvr.it/T13F2D

How to Execute the Code on My Blog by Downloading the Quarto File

صورة
I’ve said in several places that all my blog posts are fully executable code. I’ve provided a concise summary of how to access the code on my landing page, but I thought these instructions weren’t detailed enough for a novice user. This post will ... Continue reading: How to Execute the Code on My Blog by Downloading the Quarto File http://dlvr.it/T13Dvn

Unveiling the Smooth Operator: Rolling Averages in R

صورة
Introduction Ever felt those data points were a bit too jittery? Smoothing out trends and revealing underlying patterns is a breeze with rolling averages in R. Ready to roll? Let’s dive in! Rolling with the ‘zoo’ Meet the ‘zoo’ package, your t... Continue reading: Unveiling the Smooth Operator: Rolling Averages in R http://dlvr.it/T13DqY

Probability intervals with GAMs

صورة
Probability intervals with GAMs A neat trick with GAMs (generalized additive models) fit using the mgcv package is that you can use simulation to get Bayesian credible intervals. This is handy because it means you can easily calculate probabilities fo... Continue reading: Probability intervals with GAMs http://dlvr.it/T13Dkv

Learnings from the First R-Based Submission to FDA by Novo Nordisk

صورة
Novo Nordisk stands as a trailblazer in R-based submissions to the FDA, having recently completed the inaugural submission in this statistical programming language to regulatory authorities. This milestone was achieved at the close of 2021, encompassing the inclusion of SDTM (Study Data Tabulation Model) and ADaM (Analysis Data Model) datasets, programs, ... Continue reading: Learnings from the First R-Based Submission to FDA by Novo Nordisk http://dlvr.it/T13Dct

Factor Analysis in R workshop

Join our workshop on Factor Analysis in R, which is a part of our workshops for Ukraine series!  Here’s some more info:  Title: Factor Analysis in R Date: Thursday, February 1st, 18:00 – 20:00 CET (Rome, Berlin, Paris timezone) Speaker: Gagan Atreya is a quantitative social scientist and data science consultant based ... Continue reading: Factor Analysis in R workshop http://dlvr.it/T10TQ6

Harness the Power of R for Survival Analysis: Join Our {ggsurvfit} Webinar!

صورة
Hello, Data Enthusiasts! Are you ready to take your data visualization skills to the next level in the fascinating world of survival analysis? We’re thrilled to invite you to our... The post Harness the Power of R for Survival Analysis: Join Our {ggsurvfit} Webinar! appeared first on R Consortium. Continue reading: Harness the Power of R for Survival Analysis: Join Our {ggsurvfit} Webinar! http://dlvr.it/T0zM85

Reflecting on the Past Year: A LinkedIn Year in Review (2023)

صورة
Introduction As we close the door on another year, it’s always a good time to look back and reflect on the past 12 months. And what better way to do that than with a LinkedIn Year in Review? Whether you’re a job seeker, a business owner, or just... Continue reading: Reflecting on the Past Year: A LinkedIn Year in Review (2023) http://dlvr.it/T0zLyZ

Icons in a Shiny dropdown input

صورة
The function below generates a Shiny dropdown list including some icons. library(shiny) library(fontawesome) library(htmltools) selectInputWithIcons Continue reading: Icons in a Shiny dropdown input http://dlvr.it/T0zLjP

Your Data’s Untold Secrets: An Introduction to Descriptive Stats with R

صورة
The Art of Data ExplorationIn the world of data analysis, every dataset is a trove of untold secrets waiting to be unearthed. These data-driven revelations can hold the key to informed decision-making, scientific discoveries, and a deeper understanding... Continue reading: Your Data’s Untold Secrets: An Introduction to Descriptive Stats with R http://dlvr.it/T0ycRq

Cryptocurrency Market Data in R

صورة
Getting cryptocurrency OHLCV data in R without having to depend on low-level coding using, for example, curl or httr2, have not been easy for the R community. There is now a high-level API Client available on CRAN which fetches all the market data without having to rely on web-scrapers, API ... Continue reading: Cryptocurrency Market Data in R http://dlvr.it/T0wrQQ

How Inclusivity, Women in STEM, and Trips to the Pub Together Enrich the Manchester R User Group in the UK

صورة
The R Consortium recently reached out to Abbie Brookes, Senior Analyst and AI Consultant at Datacove, co-founder and organizer of the Manchester R User Group. During the conversation, Abbie discussed... The post How Inclusivity, Women in STEM, and Trips to the Pub Together Enrich the Manchester R User Group in ... Continue reading: How Inclusivity, Women in STEM, and Trips to the Pub Together Enrich the Manchester R User Group in the UK http://dlvr.it/T0wH9b

R Solution for Excel Puzzles

صورة
Puzzles no. 354–358PuzzlesAuthor: ExcelBIFrom this week all files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Puzzle #354This puzzle comes up on Christmas (Dec, 25th), so it was not really suprisin... Continue reading: R Solution for Excel Puzzles http://dlvr.it/T0wGv8

Migrating a blog to Quarto: Reverse engineering HTML to markdown

I migrated my personal webpage to Quarto in july 2022. The only thing I did not do was my blog; for two reasons: 1) Quarto was still very new and many of todays features were not available. I already needed to hack some things together for my pe... Continue reading: Migrating a blog to Quarto: Reverse engineering HTML to markdown http://dlvr.it/T0wGWV

Using great circle distance to determine Twin Cities

صورة
In the US we think of Minneapolis and St. Paul as the Twin Cities, but Ben Olin, author of Math with Bad Drawings, https://mathwithbaddrawings.com/, posed this data science question: Which U.S. cities are the true twin cities? He imposed three c... Continue reading: Using great circle distance to determine Twin Cities http://dlvr.it/T0tYgg

PowerQuery Puzzle solved with R

صورة
#143–144PuzzlesAuthor: ExcelBIFrom this week all files (xlsx with puzzle and R with solution) for each and every puzzle are available on my Github. Enjoy.Suprisingly this week we have no time-related puzzles, they are rather transformations of tables.Puzzle #143In this puzzle we have some kind of log. Employees are ... Continue reading: PowerQuery Puzzle solved with R http://dlvr.it/T0tYWS

Most popular posts – 2023

Welcome 2024. This blog is just a personal hobby. When I’m extra busy as I was this year the blog is a front-line casualty. This is why 2023 saw a weaker posting stream. Nonetheless I am pleased with just over 30K visits this year, with an average of roughly one minute ... Continue reading: Most popular posts – 2023 http://dlvr.it/T0t1Zf

Quantile Regression with Random Forests

صورة
In my December 22 blog, I first introduced the classic parametric quantile regression (QR) concept. I then showed how one could use the qeML package to perform quantile regression nonparametrically, using the package’s qeKNN function for a k-Nearest Neighbors approach. A reader then asked if this could be applied to ... Continue reading: Quantile Regression with Random Forests http://dlvr.it/T0rldr

learningmachine: prediction intervals for conformalized Kernel ridge regression and Random Forest

صورة
prediction intervals for miles per gallon (mpg) car consumption using conformalized Kernel ridge regression and random forest. Continue reading: learningmachine: prediction intervals for conformalized Kernel ridge regression and Random Forest http://dlvr.it/T0rlW4

R To trade or not to trade with Shitcoins and Memecoins (part 1)

صورة
Figure 1: images/tradeornottrade.jpg It took me long time to muster the motivation to write this post. I greedily dreamed of putting something together that would unveil the secret to crypto trading while amassing a ... Continue reading: R To trade or not to trade with Shitcoins and Memecoins (part 1) http://dlvr.it/T0rRV3

Four ways to streamline your R workflows

صورة
In previous years, when it gets to the end of the year, I’ve written blog posts about reflecting on a year of #TidyTuesday data visualisations, or making your own #RStats Wrapped in the style of SpotifyWrapped. This year, I wanted to reflect on... Continue reading: Four ways to streamline your R workflows http://dlvr.it/T0rRP6