Over a million developers have joined DZone.

Sunsets in Google Calendar Using R

DZone's Guide to

Sunsets in Google Calendar Using R

· Big Data Zone ·
Free Resource

Hortonworks Sandbox for HDP and HDF is your chance to get started on learning, developing, testing and trying out new features. Each download comes preconfigured with interactive tutorials, sample data and developments from the Apache community.

Given the huge amount of data floating around the web, sometimes it can be a bit overwhelming to figure out what to do with it. How do you sort what is useful from what is noise? Blogger Hillary Parker  posted a fun project  mining data with R in order to set appointments to catch the sunset:

I decided to create some Google Calendar “appointments” for myself, using R and specifically the sunrise.set() function (thanks Carlos!). Because I’m a big user of Google Now, this means that–based on my location and travel time–my phone will buzz at me and tell me to leave for the Promenade in time to see the sunset.

And it's no surprise this little bit of ingenuity was a priority for Parker, given the photos she shared of her vantage point on the Brooklyn promenade:

There's a more thorough tutorial on her original blog post . Taking a few lines of code to cull some natural beauty from the vast swarm of data is totally worth it!

Hortonworks Community Connection (HCC) is an online collaboration destination for developers, DevOps, customers and partners to get answers to questions, collaborate on technical articles and share code examples from GitHub.  Join the discussion.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}