From the course: Code Clinic: JavaScript

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Intro: The weather at Pond Oreille

Intro: The weather at Pond Oreille - JavaScript Tutorial

From the course: Code Clinic: JavaScript

Start my 1-month free trial

Intro: The weather at Pond Oreille

- Hello, and welcome to the first problem in the Code Clinic series. This problem is about calculating statistics from a data set. It's easy stuff, but presents a good example of how different languages accomplish common tasks. Our authors will start with weather data captured from lake Pend Oreille in Northern Idaho. We have almost 20 megabytes of data from the years 2012 through 2015. That data is available in the folder with other exercise files. Each observation in the data includes several variables: date, time, air temperature, barometric pressure, dew point, and others. And the data is straightforward. Likewise, the problem is simple. Write a function that accepts a beginning date and time, and an ending date and time, inclusive of those dates and times. Return the coefficient of the slope of the barometric pressure. A rising slope indicates an increasing barometric pressure, which typically means fair and sunny weather ahead. A falling slope indicates a decreasing barometric…

Contents