Mastodon
Go back

An Ephemeral Update to daylight()

This occurrence of the bi-annual corruption of the space-time continuum (i.e. changing to/from standard/daylight time) in the U.S. caused me to make a slight change to the code from an older post. The daylight() function now auto-discovers the date and location information (via telize) from the caller, which means all you have to do to get a plot like this:

RStudio

is to source the new gist like this:

devtools::source_gist("e435d4fa0c31b8e1a9d0", sha1="64e859227266dc5f9008b3b3959a19fea373fee6")

Remember that you should verify any code before blindly sourceing it (in R or anywhere else) and make sure to use the SHA1 hash so you know you’re sourcing the proper code (and not potentially being pwnd).

Note that the granularity/accuracy of the geolocation is only as good as the Telize service (which uses MaxMind). The fact that this shows Vermont instead of Maine should make you all think thrice about trusting IP geolocation in general, especially you world-mapping cybersecurity folks.

Sadly, the darkest of days is still yet to come.


Join the conversation:follow@hrbrmstr@rud.ison the fediverse to read and reply to this post from your own instance.

No comments yet.


Previous Post
Visualizing Survey Data : Comparison Between Observations
Next Post
Less Drama, More Encoding