Browsed by
Month: July 2017

Creating flag variables in R programming

Creating flag variables in R programming

Now that we’ve gone through the first steps of analyzing our weather data to find the optimal time to travel to Sedona it’s time to create some new variables to help identify the optimal days based on a variety of factors. First, we’re going to create some flags to identify which days have the desired characteristics for Temperature, Visibility, Humidity, and Precipitation.

Improving Weather Analysis Graphs with R programming

Improving Weather Analysis Graphs with R programming

Yesterday’s post got us through a basic box plot of the average temperatures in Sedona to help us continue to evaluate the best time of year to go based on my personal preferences for the weather. ┬áToday I’m going to clean up that chart and make it a little nicer to look at and easier to analyze. ┬áTo do that, I’m using a very common package in R called ‘ggplot2‘. First, I’m going to define the graph item by telling…

Read More Read More

Analyzing Weather Data in R programming

Analyzing Weather Data in R programming

Now that we’ve completed all of the prep work (see Reading Data), we are ready to begin analyzing the temperature data we’ve brought into R. To start, we need to format a few of the existing fields and create some new ones. We begin by telling R that the date field is indeed date format. The code below tells R to create a new field “Date” in the temps table that is equal to the conversation of the current field,…

Read More Read More