Philippe Massicotte
  • Publications
  • Presentations
  • Workshops and teaching
  • About
Categories
All (16)
Data manipulation (1)
dplyr (1)
DuckDB (2)
duckplyr (1)
geospatial (1)
Geospatial (6)
ggplot2 (1)
Package discovery (1)
Parquet (2)
Puzzles (1)
R (16)
R tips (3)
rspatial (2)
S3 (1)
sf (1)
Simple Features (1)
Spatial (1)

When duckdb meets dplyr!
R
DuckDB
dplyr
duckplyr
S3
Parquet
I like DuckDB 🦆. I am excited to see that it is now possible to use it with dplyr using the fantastic duckplyr package which gives us another way to bridge dplyr with DuckDB.
Philippe Massicotte
May 1, 2024

Segmenting linestring into points of equal distance
R
sf
geospatial
rspatial
This will be a quick one, but I thought it was worth sharing (at least for future me). I was recently trying to segment a line into points of equal distances. I must say…
Philippe Massicotte
Sep 26, 2023

Unlocking Cloud Data: A Step-by-Step Guide to Reading and Transforming Spatial Data with DuckDB
R
Geospatial
DuckDB
Spatial
Simple Features
Parquet
In this blog post, I will show you how to read and transform spatial data hosted in the cloud with DuckDB1. I will use the nycflights13, a popular dataset for learning data…
Philippe Massicotte
Sep 14, 2023

Separating/exploding spatial features with R
R
rspatial
Geospatial
It has been a while since I posted something! But today I wanted to quickly experiment and create a map where I could separate/explode the spatial geometries. Let’s first…
Philippe Massicotte
Aug 15, 2023

Hanukkah of data 2022
R
Puzzles
If you are looking for some data science challenges, don’t look anymore, Hanukkah of Data is there for you. You can think of it as similar to Advent of Code but tailored…
Philippe Massicotte
Dec 28, 2022

Uptating Ubuntu packages crashed my renv R project
R
R tips
I am using renv quite a lot. Recently, I had to return to an older project that was using this package to manage package dependencies. When I tried to load tidyverse, I got…
Philippe Massicotte
Aug 16, 2022

Removing white spaces around plots in R Markdown / Quarto
R
R tips
When plotting spatial data, such as a geographical map, maintaining a proper aspect ratio is important. Whereas knitr::plot_crop() works fine to crop a file, how can we do…
Philippe Massicotte
Aug 15, 2022

How to read AMSR2 sea ice data with terra
R
Geospatial
Today I was trying to read AMSR2 sea ice data. I was surprised to discover that the files do not include coordinates or projection information. Data and coordinates are…
Philippe Massicotte
Aug 11, 2022

Beautiful equations in R Markdown and Quarto
R
Package discovery
When writing dynamic documents in R (either R Markdown or Quarto), it can be useful to display model equations. I recently discovered equatiomatic, a very nice package that…
Philippe Massicotte
Aug 5, 2022

Changing spatial resolution of a raster with terra
R
Geospatial
Lately, I was working on a project and I needed to change the spatial resolution of a GeoTIFF to match that of another one. After looking around, I posted a question on…
Philippe Massicotte
Apr 28, 2022

Reading multiples CSV files using readr
R
Data manipulation
If you are beginning in R, chances are that you have used read.csv() to import CSV files into R. While this function works perfectly fine, it can only read one file at a…
Philippe Massicotte
Feb 15, 2022

Choosing the right geographic projection with the crsuggest R package
R
Geospatial
When creating maps, choosing an appropriate geographical projection is often a difficult task (at least for me). There are plenty of projections to choose from, and none can…
Philippe Massicotte
Nov 12, 2021

Extracting raster values using the stars R package
R
Geospatial
For a long time, I have been using the raster package to manipulate raster data in R. Slowly, I am trying to work my way out with the new stars package. In this post, I am…
Philippe Massicotte
Mar 6, 2021

How to change the language of dates in R
R
R tips
Recently, I had to make a ggplot2 graphic with data that contained dates. Let’s create some sample data with dates.
Philippe Massicotte
Jan 10, 2021

Removing borders around ggplot2 graphs
R
ggplot2
Recently I was participating in the 30DayMapChallenge where people were invited to make a map based on a different daily theme for one whole month.
Philippe Massicotte
Dec 20, 2019

Visualizing the decrease of Artic sea ice extent
R
It is well known that the Arctic sea ice extent is decreasing at an increasing pace. As stated by the National Snow & Ice Data Center:
Philippe Massicotte
Aug 23, 2019
No matching items