When you realize data.table is not just fastโฆ
but also lets you:
- filter like a ninja
- group like a boss
- update in place like magic
- chain like you're riding ๐ฒ downhill
And all with [i, j, by].
Name a tidier feeling. Iโll wait.
#rstats#datatable
I took a photo of a USAID nutrition pack. Nothing weirdโฆ until I looked closer.
The image had hidden GPS data.
Using Python, I pulled the coordinates and put a pin on the map.
What I found wasโฆ strange.
Should foreign aid be ending up here? ๐
I mapped the exact spot where the USAID nutrition pack was photographed.
Youโll see the coordinates, the map, and how I did it in Python.
This isnโt just about one photo โ itโs about transparency.
๐ Full post & map here โ
I broke down how to extract location data from any image โ and revealed the exact location of this USAID pack.
๐งญ Want to see where it was taken?
๐Check the map + story here:
https://t.co/w3QOUD0OTo
Should it be there? Let me know!
3/3
I found a USAID nutrition pack lying around and took a photo โ just out of curiosity.
Later, I checked the imageโs metadataโฆ
It turns out that GPS coordinates were embedded in it. ๐
So I mapped it. See below for the location! 1/3
Working with wide data? Want to sum several columns quickly โ with or without grouping? Hereโs how to do it cleanly using data.table in #RStats: ๐
Filtering large datasets in R? You might be using dplyr::filter(), but there's a faster way. ๐ Let's compare dplyr and data.table for big data filtering. ๐ #rstats#DataScience
To find out, we ran a benchmark comparing dplyr::filter() vs data.table on a 20-million-row dataset.
We filtered rows where a > 0.5 and recorded the execution time. ๐
Here's what happened...