Programming Leftovers
-
The empty list
My friend Zyni pointed out that someone has been getting really impressively confused and cross on reddit about empty lists, booleans and so on in Common Lisp, which led us to a discussion about what the differences between CL and Scheme really are here. Here’s a summary which we think is correct.
-
How to Perform Bootstrapping in R
The basic bootstrapping procedure is as follows:
Take k repeated replacement samples from a given dataset.
Calculate the statistic of interest for each sample.
These yields k different estimates for a given statistic, which you can then use to calculate the statistic’s standard error and create a confidence interval.
We can perform bootstrapping in R by calling the following boot library functions: [...]
-
I'm an R user: Quarto or R Markdown?
Earlier this year, Posit (formerly RStudio) released Quarto. Quarto is an open-source scientific and technical publishing system that allows you to weave together narrative text and code to produce high-quality outputs including reports, presentations, websites, and more.
One of the main features of Quarto is that it isn’t just built for R. It’s language-agnostic. It can render documents that contain code written in R, Python, Julia, or Observable. That makes it incredibly useful if you work in multilingual teams, or collaborate with people who write in a different programming language from you. But what if you don’t use any other programming languages? What benefits does Quarto bring to people who only use R?
-
Weighted residual empirical processes in semi-parametric copula adjusted for regression | YoungStatS
In this post we first review the concept of semi-parametric copula and the accompanying estimation procedure of pseudo-likelihood estimation (PLE). We then generalize the estimation problem to the setting where the copula signal is hidden in a semi- or non-parametric regression model. Under this setting we have to base the PLE on the residuals. The particular challenge of the diverging score function is handled via the technique of the weighted residual empirical processes.
-
Shiny in Production: Recordings
This week, we’ve been reminding ourselves of some of the amazing talks from the Shiny in Production conference in October. The recordings are now up on our YouTube channel, for anyone to view!
-
Select colours from an image in R with {eyedroppeR} - Dan Oehm | Gradient Descending
There are fancy ways to extract colours from images but sometimes it’s easier if you could simply click on the image and choose the colours you want.
With eyedroppeR you can click on an image to return the hex codes of the selected pixels all within R.
-
12 best IoT conferences and events to attend in 2023 | TechTarget
IoT events are changing to accommodate users worldwide by having both in-person and virtual options in 2023. Learn more about this year's top 12 conferences.
-
Remove double whitespaces from a string of text using PHP preg_replace
If you need to remove double whitespaces from a string of text using PHP, we can use the preg_replace function.