المشاركات

عرض المشاركات من مارس, 2023

Code snippets – 2 scale y axes in {ggplot2}

صورة
Inspired by conversations on the NHS-R Slack where code answers are lost over time (it’s not a paid account), and Continue reading: Code snippets – 2 scale y axes in {ggplot2} http://dlvr.it/SlmKK9

February 2023: “Top 40” New CRAN Packages

صورة
One hundred seventy-three new packages made it to CRAN in February. Here are my “Top 40” selections in thirteen categories: Computational Methods, Data, Ecology, Economics, Machine Learning, Mathematics, Medicine, Pharma, Science, Statistics, Time Series, Utilities, and Visualization. Computational Methods dcTensor v1.0.1: Implements semi-binary and semi-ternary matrix methods based on non-negative matrix ... Continue reading: February 2023: “Top 40” New CRAN Packages http://dlvr.it/SljHtV

Floating-point summation and the M1 processor

John C. Nash, Retired Professor, University of Ottawa While I have had little to do with Apple since the early 1980s when they abandoned several products in which a colleague and I had invested time, effort and money, I recently had to take note of the introduction of the M1 ... Continue reading: Floating-point summation and the M1 processor http://dlvr.it/SlfKL0

Data wrangling tricks from the R4DS slack

Every now and then there is a question on the R4DS slack that produces a large number of replies. This case was particularly interesting because the user that had the issue deleted all the original content, the question, the clarifications and so on. ... Continue reading: Data wrangling tricks from the R4DS slack http://dlvr.it/Sld9dk

R in Finance and Accounting Sector in Korea

صورة
Woo June Jung, Founder of the R Korea Group (also on Facebook) recently talked to the R Consortium to discuss his efforts to promote the use of R in Korea.... The post R in Finance and Accounting Sector in Korea appeared first on R Consortium. Continue reading: R in Finance and Accounting Sector in Korea http://dlvr.it/SlbKgN

There’s a black hole in the number line

صورة
The government doesn't want you to know about this, but I have discovered it and I will share this with a few close friends: There is a black hole in the number line, and it's at number 4. Every word in the English language will eventually fall into ... Continue reading: There’s a black hole in the number line http://dlvr.it/SlbKKT

How fast does a compressed file in?

Introduction I received an email over the weekend in regards to my last post not containing the reading in of gz compressed file(s) for the benchmarking. While this was not an over site per-se it was a good reminder that people would probably be... Continue reading: How fast does a compressed file in? http://dlvr.it/SlbK5f

Creating Standalone Apps from Shiny with Electron [2023, macOS M1]

صورة
💡 I assume that… You’re famillar with R / shiny  You know basic terminal command. You’ve heard about node.js, npm, or Javascript something… 1. Why standalone shiny app? First, let’s talk about the definition of a standalone app. I’m going to define it this way An app that ... Continue reading: Creating Standalone Apps from Shiny with Electron [2023, macOS M1] http://dlvr.it/SlXNGr

Webscrap e iteraciones con R

Sobre este post Estamos creando mapas de datos que muestran los cambios durante un período de tiempo para diferentes países y orientado a todo tipo de ciudades. Esto básicamente significa que necesitamos mapear cualquier región del mundo con R. Hoy en ... Continue reading: Webscrap e iteraciones con R http://dlvr.it/SlVFYP

10 potential career options with a degree in statistics

صورة
Introduction What types of jobs are available? Statistician Data scientist, data/business analyst, data engineer or machine learning engineer Actuary or actuarial analyst Financial (risk) analyst, investment analyst, financial trader, financial ma... Continue reading: 10 potential career options with a degree in statistics http://dlvr.it/SlS5tg

Top five(ish) sources of ecological data

صورة
As you’re learning R, it can be hard to come up with data sets that you can practice with. Though many of us have our own data, those might not always be in the best format to do what we want. Our own data are often messy and require ... Continue reading: Top five(ish) sources of ecological data http://dlvr.it/SlPDJZ

Unlocking the Power of purrr: How to Create Multiple Lags Like a Pro in R

صورة
Are you tired of creating lag variables one by one? Are you ready to level up your time series analysis game? Forget everything you know about creating lag variables. There’s a better way, and it’s been right in front of you all along. This is a good one. ... Continue reading: Unlocking the Power of purrr: How to Create Multiple Lags Like a Pro in R http://dlvr.it/SlLD8B

officialcocktails.com – An AI-generated cocktails site

صورة
The first thing I thought when I tried all the cool tools of the Year of the AI Revolution (aka 2022) was: OMG this is amazing, it’s the AI future that I never thought I would see. The second thing I thought was: OMG this is going to be used ... Continue reading: officialcocktails.com – An AI-generated cocktails site http://dlvr.it/SlHCSV

WebR Filesystem Machinations & ReefR

It’s difficult to believe it has only been a couple of weeks since WebR has been around. But that might just be my perception. The spike protein invasion has significantly increased sedentary time, and that has enabled me to focus on this new toy to keep my attention focused ... Continue reading: WebR Filesystem Machinations & ReefR http://dlvr.it/SlD8Xy

Orbit trapped Julia fractal

صورة
Given a complex number \(z_c\), called the Julia point, the corresponding Julia fractal is obtained by iterating \(z \mapsto z^2 + z_c\) for each complex number \(z\) until the modulus of ... Continue reading: Orbit trapped Julia fractal http://dlvr.it/SlD8JW

Automating checks of *handcrafted* Word tables with {docxtractr}

صورة
Unfortunately not everyone knows about literate programming so many tables in Word documents are “generated” by hand (generated is really too strong a word) and what very often happens is that these handcrafted tables have typos. Usually it’s totals that are wrong. Checking the totals in these tables by ... Continue reading: Automating checks of *handcrafted* Word tables with {docxtractr} http://dlvr.it/Sl99Zg

WebR WASM R Package Load/Library Benchmarking Rabbit Hole

صورة
I have a post coming on using base and {ggplot2} plots in VanillaJS WebR, but after posting some bits on social media regarding how slow {ggplot2} is to deal with, I had some “performance”-related inquiries, which led me down a rabbit hole that I’m, now, dragging y’all ... Continue reading: WebR WASM R Package Load/Library Benchmarking Rabbit Hole http://dlvr.it/Sl714b

Use of the apply family of functions

صورة
I am thrilled to announce that the R universe of packages {healthyverse} has surpassed 60,000 downloads! Thank you to everyone who has downloaded and used these packages, your support is greatly appreciated. For those who are not familiar, the {h... Continue reading: Use of the apply family of functions http://dlvr.it/Sl4sg7

rOpenSci News Digest, March 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: Sébastien Rochette Knowing our... Continue reading: rOpenSci News Digest, March 2023 http://dlvr.it/Sl4sRm

R Programming for Policy Analysis – 2021 Course Resources

A long-time ago, in the midst of a global pandemic, I launched the first online version of my ‘R Programming for Policy Analysis’ course with a motley crew of consultants, policy analysts and researchers. Despite being cobbled together using a combination of teleconferencing and duct-tape, the course was rated highly ... Continue reading: R Programming for Policy Analysis – 2021 Course Resources http://dlvr.it/Sl20v9

Scraping financial data from finviz with R and rvest package

صورة
Introduction If you’re an active trader or investor, you’re probably aware of the importance of keeping up with the latest stock market news and trends. One tool that many traders use to stay on top of market movements is Finviz, a popular financial visualization website that offers a ... Continue reading: Scraping financial data from finviz with R and rvest package http://dlvr.it/SkyyBG

Interactive Quarto Reports with Shiny using {shiny.i18n}

صورة
Quarto is exciting! It is simple, seamless, and easy to use! Do you know what makes it even better? Interaction. Quarto integrates with R/Shiny instances and provides you with a way to make your documents interactive. In our previous tutorial on shiny.i18n + Quarto, we cooked up a ... Continue reading: Interactive Quarto Reports with Shiny using {shiny.i18n} http://dlvr.it/Skyy00

Log-modulated rough stochastic volatility models

صورة
Rough Volatility New insights about the regularity of the instantaneous variance obtained from realized variance data (see Gatheral, Jaisson, and Rosenbaum (2018), Bennedsen, Lunde, and Pakkanen (2021, to appear), Fukasawa, Takabatake, and Westphal... Continue reading: Log-modulated rough stochastic volatility models http://dlvr.it/SkvvTn

Fitting threshold models to seed germination data

صورة
In previous posts we have shown that we can use time-to-event curves to describe the germination pattern of a seed population (see here). We have also shown that these curves can be modified to include the effects of external/internal factors/covariates, such as the genotype, the species, the humidity ... Continue reading: Fitting threshold models to seed germination data http://dlvr.it/SkvvHb

IBA cocktails in csv and json format: But why?!!

صورة
Yesterday I put up a post where I described how I scraped The International Bartenders Association (IBA) cocktails into csv and json format. Timothy Wolodzko had a reasonable question regarding this on Mastodon: Two reasons: Data that&r... Continue reading: IBA cocktails in csv and json format: But why?!! http://dlvr.it/Skrr33

The International Bartenders Association (IBA) cocktails in csv and json format

صورة
I find it fascinating that the International Bartenders Association (IBA) keeps a list of “official” cocktails. Like, it’s not like the World Association of Chefs’ Societies keeps a list of official dishes. But yet the IBA k... Continue reading: The International Bartenders Association (IBA) cocktails in csv and json format http://dlvr.it/SknsDW

How to set up an R-based AWS Lambda to write to AWS S3 on a schedule

Overview At the end of this tutorial, we would have created an AWS Lambda function that fetches the most-recent Tidytuesday dataset and writes it into an S3 Bucket every Wednesday. To do this, we’ll first work interactively with {r2lambda} and {p... Continue reading: How to set up an R-based AWS Lambda to write to AWS S3 on a schedule http://dlvr.it/Skm5Y0

Financial Markets & Value Invest in R (I) – Analyzing Market Cap data with fmpcloudr and ggplot

صورة
Over the past months, heavy market drifts have occurred, and no one could have imagined the frenzy of free money being stopped. The idea that the end of history had arrived has been shattered. As we entered 2023, we witnessed certain stocks soaring in the markets, attempting to recover from their ... Continue reading: Financial Markets & Value Invest in R (I) – Analyzing Market Cap data with fmpcloudr and ggplot http://dlvr.it/SkjlRK

Getting NYS Home Heating Oil Prices with {rvest}

Introduction If you live in New York and rely on heating oil to keep your home warm during the colder months, you know how important it is to keep track of heating oil prices. Fortunately, with a bit of R code, you can easily access the latest heating oil prices ... Continue reading: Getting NYS Home Heating Oil Prices with {rvest} http://dlvr.it/SkfwSZ

From excel to R: Part 1

صورة
Contents Load library Define path Reading all sheets Mixed date formats Welcome welcome. In this blog post, we will be exploring: How to efficiently read data from multiple sheets in an Excel workbook and combine them into a si... Continue reading: From excel to R: Part 1 http://dlvr.it/SkbwBQ

Interpretation of the AUC

The AUC* or concordance statistic c is the most commonly used measure for diagnostic accuracy of quantitative tests. It is a discrimination measure which tells us how well we can classify patients in two groups: those with and those without the outcome of interest. Since the measure is based on ... Continue reading: Interpretation of the AUC http://dlvr.it/SkXvF4

Software engineering techniques that non-programmers who write a lot of code can benefit from — the DRY WIT approach

صورة
Data scientists, statisticians, analysts, researchers, and many other professionals write a lot of code. Not only do they write a lot of code, but they must also read and review a lot of code as well. They either work in teams and need to review eac... Continue reading: Software engineering techniques that non-programmers who write a lot of code can benefit from — the DRY WIT approach http://dlvr.it/SkWfrp

tidy_bernoulli() with {data.table}

Introduction So I was challanged by Adrian Antico to learn data.table, so yesterday I started with a single function from my package {TidyDensity} called tidy_bernoulli(). So let’s see how I did (hint, works but needs a lot of improvement, so I’... Continue reading: tidy_bernoulli() with {data.table} http://dlvr.it/SkWCbQ

Interpolating non-gridded data

صورة
I still wrapped a part of the C++ library CGAL in a R package, namely interpolation. The purpose of this package is to perform interpolation of bivariate functions. As compared to ex... Continue reading: Interpolating non-gridded data http://dlvr.it/SkSy4K

Simple examples of imap() from {purrr}

Introduction The imap() function is a powerful tool for iterating over a list or a vector while also keeping track of the index or names of the elements. This function applies a given function to each element of a list, along with the name or in... Continue reading: Simple examples of imap() from {purrr} http://dlvr.it/SkScJf

Little useless-useful R functions – Using xspline to create wacky signatures

صورة
Nothing short of wacky usage of plot() function with xspline to interpolate the points, but still a “parameter” short of Bezier’s curve. 🙂 Given two random vectors, you can generate a plot that, xspline will smooth out the plot and…Read more › Continue reading: Little useless-useful R functions – Using xspline to create wacky signatures http://dlvr.it/SkQnBv

Using R in an High Performance Computing environment

In a common workflow when programming with R one only deals with a Desktop machine or a Laptop, for instance. This PC environment is convenient for R users as they can focus mainly on coding but it could be the case that the program is taking a long time to ... Continue reading: Using R in an High Performance Computing environment http://dlvr.it/SkNfD8

Data Science Program for French-speaking Women in Africa

صورة
The R Consortium is happy to announce and help promote the Data Science project for French-speaking Women in Africa. This program begins on March 6th, 2023, and will be led... The post Data Science Program for French-speaking Women in Africa appeared first on R Consortium. Continue reading: Data Science Program for French-speaking Women in Africa http://dlvr.it/SkLWhW

Text Processing Made Easy with {healthyR}’s sql_left(), sql_mid(), and sql_right() Functions in R

Introduction Are you tired of manually manipulating text data in R? Do you find yourself frequently needing to extract substrings from long strings or to grab just the first few characters of a string? If so, you’re in luck! The {healthyR} libra... Continue reading: Text Processing Made Easy with {healthyR}’s sql_left(), sql_mid(), and sql_right() Functions in R http://dlvr.it/SkHhKk

January 2023: “Top 40” New CRAN Packages

صورة
One hundred sixty-five new packages made it to CRAN in January. Here are my “Top 40” selections in thirteen categories: Actuarial Statistics, Archaeology, Computational Methods, Ecology, Genomics, Mathematics, Medicine, Machine Learning, Science, Statistics, Time Series, Utilities, Visualization. Actuarial Statistics actuaRE v0.1.3: Provides functions to fit random effects models using either the ... Continue reading: January 2023: “Top 40” New CRAN Packages http://dlvr.it/SkDcDS

Enseigner, aider et partager. L’approche de ThinkR pour contribuer à la croissance d’une communauté R conviviale

Ceci est le deuxième article de notre série d’entretiens “Rencontre les stars de l’univers R”. Notre objectif est de présenter les groupes de travail et les personnes qui se cachent derrière le développement des logiciels et de... Continue reading: Enseigner, aider et partager. L’approche de ThinkR pour contribuer à la croissance d’une communauté R conviviale http://dlvr.it/Sk9Y6W

Why should I use R: The Excel R Data Wrangling comparison: Part 1

صورة
This is part 1 of an ongoing series on why you should use R. Future blogs will be linked here as they are released. The era of data manipulation and analysis using programming languages has arrive... Continue reading: Why should I use R: The Excel R Data Wrangling comparison: Part 1 http://dlvr.it/Sk9XnN