Recently Published
Importing and analyzing financial data with Quantmod
I import financial data from Yahoo Finance and other sites, and create time series charts using Quantmod - a Quantitative Financial Modelling & Trading Framework for R. I add a layer of technical analysis using TTR package.
Building a natural language index (a SQL demo)
I build a natural language index on a document, first "by hand" and then using PostgreSQL inbuilt features.
Building an inverted string index (a SQL demo)
I create an inverted string index on a document, first "by hand" and then using PostgreSQL inbuilt features.
Flat text files and Regex (a SQL demo)
I import into a SQL database an archive of e-mail correspondence and search through it using regular expressions.
Regular expressions (a SQL demo)
The document gives an overview of regular expressions in PostgreSQL, with examples of queries including single and multiple matches.
Text functions and query performance (a SQL demo)
The document showcases various text functions, evaluated on a randomly generated dataset, along with an analysis of query performance.
Designing a relational database model Unesco Heritage Sites (a SQL demo)
The task is to design a database model representing flat data across multiple linked tables using "third-normal form" (3NF), i.e. columns with vertical duplication must be placed in separate tables and linked into the main table using a foreign key.
A SQL demo: loading and normalizing csv data
The document is created in Quarto accessed from RStudio connected to a locally hosted PostgreSQL database.
A SQL demo: stored procedures
The document is created in Quarto accessed from RStudio connected to a PostgreSQL database.
A SQL demo: subqueries, concurrency and transactions
The document is created in Quarto accessed from RStudio, with a connection to a PostgreSQL database..
A SQL Demo - reducing the result set
I focus on reducing vertical duplication in the result set with DISTINCT, DISTINCT ON and GROUP BY ... HAVING
The document is created in Quarto accessed from RStudio.
A SQL demo: timestamp modifications
The document is created in Quarto accessed from RStudio.
A SQL demo: many to many relationships.
I create a database with a "many to many" relationship.
The document is created in Quarto accessed from RStudio.
A SQL Demo: database creation and basic operations
This document is created in Quarto accessed from RStudio.
R data preparation demo
A quick overview of a data preparation process - from downloading and cleaning to subsetting, filtering, and first visualizations with ggplot2.