<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/watermain-breaks-in-the-city-of-toronto/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/"> Incidental Ideas</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>It has been a while since my last post due to the major transition of moving back to Canada. This post will be a bit shorter than my previous ones but hopefully it will give some insight on practically investigating and analyzing open data that are becoming more popular these days. All the code for this post is found at my <a rel="nofollow" href="https://github.com/eugejoh/TO_Watermain" target="_blank">Github</a>.</p>
<h2>Drinking Water</h2>
<p>Water is a basic physiological need for humans. We can go days without food and be okay, but without water… that’s another story. <strong>Drinking water</strong> or potable water is something in the developed world we take for granted. Much of the world does not have great access to clean water and by United Nations had made their 6th <a rel="nofollow" href="http://www.un.org/sustainabledevelopment/water-and-sanitation/" target="_blank">Sustainable Development Goal</a> to “<em>ensure access to water and sanitation for all</em>” and that all people would have universal access to safe and affordable water by 2030.</p>
<p>In Ontario (province of Canada) we are fortunate to have good water quality in most cities, towns, municipalities. It’s important to note that a disparity exists between regions across the province: large vs. small cities, southern vs. northern locations, and within <a rel="nofollow" href="https://globalnews.ca/news/3238948/first-nations-drinking-water-crisis-liberals-promise/" target="_blank">indigenous communities</a>. Across the province, there are different types of drinking water systems, various combinations of owners/operators, and (complex) regulatory network ensuring that the quality of the water reaching users is acceptable for consumption.</p>
<h2>Watermains Breaks</h2>
<p>Within these drinking water systems, the large pipes that carry most of the water through the system from the treatment plant through the distribution system are called <strong>watermains</strong> (or water mains). In the event of a watermain failing, either by a crack, some leaking or a catastrophic break, this can have potential effects on the flow of water to users. There can be loss of pressure in the distribution system, potentially allowing contaminants (chemical or microbiological) to enter the drinking water system due to the loss of pressure. No one wants to have <em>E. coli</em> or some industrial chemical in their tap water.</p>
<p>There are many factors behind a watermain failure. Most of the time there multiple concurrent factors that cause the pipe to crack or break. A non-exhaustive list of factors include type of pipe material, age of pipe, surrounding soil conditions, corrosion, pressure fluctuations, direct damage, extreme temperatures, extreme weather events, and poor system design.</p>
<figure data-shortcode="caption" class="wp-caption"><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/watermain-break.jpg?w=323&amp;h=242&amp;fit=323%2C242&amp;resize=323%2C242" data-orig-size="590,443" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/watermain-break.jpg?w=323&amp;h=242&amp;fit=323%2C242&amp;resize=323%2C242?w=300" data-attachment-id="1934" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/watermain-break.jpg?w=323&h=242&fit=323%2C242&resize=323%2C242" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/watermain-break/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/watermain-break.jpg?w=323&amp;h=242&amp;fit=323%2C242&amp;resize=323%2C242?w=590" alt="watermain-break" data-image-title="watermain-break" sizes="(max-width: 323px) 100vw, 323px" data-comments-opened="1" class="wp-image-1934" data-recalc-dims="1"><figcaption class="wp-caption-text">Watermain Break (City of Cambridge)</figcaption></figure>
<h2>Toronto Watermain Break Data</h2>
<p>The City of Toronto has an <a rel="nofollow" href="https://www1.toronto.ca/wps/portal/contentonly?vgnextoid=1a66e03bb8d1e310VgnVCM10000071d60f89RCRD" target="_blank">Open Data Catalogue</a> containing various types of datasets on a number of topics like environment, public safety, development, and government. You can follow them on <a rel="nofollow" href="http://www.twitter.com/open_to" target="_blank">Twitter</a> to know when they update/refresh their data. The watermain break data can be found <a rel="nofollow" href="https://www1.toronto.ca/wps/portal/contentonly?vgnextoid=31a525884184a310VgnVCM1000003dd60f89RCRD" target="_blank">here</a>. I downloaded the Excel flat-file containing the date and geographic location of watermain breaks from 1990 to 2016 within the city of Toronto boundaries. For this post I will be focusing on the <strong>temporal nature</strong> of the data, aka what do the trends of watermain breaks look like over time in Toronto. <em>I ran into issues on converting the X,Y coordinate data into real latitude and longitude information so that will have to wait (potential part 2 in the future???)</em>.</p>
<h2>Data Import, Exploration, Processing</h2>
<p>After downloading the Excel file into my data folder, I use the <code>list.files</code> function and some regular expression to identify the .xlsx files in the folder. This isn’t necessary since we only have one file in our folder but I’ve decided to make it good practice to have a standard method in selecting multiple files and file types in my data folder in a programmatic fashion. Afterwards I use the <code>read_excel</code> function from the <code><a rel="nofollow" href="https://cran.r-project.org/web/packages/readxl/index.html" target="_blank">readxl</a></code> package to import the dataset into R.</p>
<pre>
watermain.files &lt;- list.files(&quot;data&quot;, pattern = &quot;\\.xlsx$&quot;)
wm.df &lt;- read_excel(paste0(&quot;data/&quot;,watermain.files))
</pre>
<p>We see that there are 35461 rows or (assumed) unique watermain breaks. After using the <code>str</code> function to get a basic idea of the types of columns I have. I rename the column names using the <code>names</code> function and create a new column with the year as a <code>factor</code> type (I actually don’t end up using this).</p>
<pre>
wm.df &lt;- read_excel(paste0(&quot;data/&quot;,watermain.files))
names(wm.df) &lt;- c(&quot;Date&quot;,&quot;Year&quot;,&quot;X_coord&quot;,&quot;Y_coord&quot;) #change column names
wm.df$Year_f &lt;- as.factor(wm.df$Year) #create new column with 'Year' as factor
wm.df$Year &lt;- as.integer(wm.df$Year) #convert original 'Year' to an integer
</pre>
<p>Next I use the <code>floor_date</code> function from the <code><a rel="nofollow" href="https://cran.r-project.org/web/packages/lubridate/index.html" target="_blank">lubridate</a></code> package to create new columns containing the month and week. This will be useful later on when I want to aggregate the frequency counts of watermain breaks by week or month.</p>
<pre>
wm.df$week &lt;- floor_date(wm.df$Date, unit = &quot;week&quot;) #floor to week
wm.df$month &lt;- floor_date(wm.df$Date, unit = &quot;month&quot;) #floor to month
</pre>
<p>Then I just create a new column that contains the same date information but instead of <code>POSIXct</code>, it is in <code>Date</code> format.</p>
<pre>
wm.df &lt;- wm.df %>% mutate(date = as.Date(Date))
</pre>
<p><em><strong>This is not related to the temporal information but a good step with the data exploratory workflow.</strong></em> I want to do a bit a quality control/assurance with the data I have. I use the <code>summary</code> function to look at the Date, Year, X_coord, and Y_coord columns. First thing that catches my eye is that there seems to be some extreme values or outliers in the spatial information, specifically the X_coord maximum and Y_coord minimum. For geographic information, typical errors include inputting latitude when it should be longitude, and vice-versa.</p>
<pre>
wm.df %>% select(X_coord, Y_coord) %>% summary()
    X_coord           Y_coord
 Min.   : 294164   Min.   : 304472
 1st Qu.: 303580   1st Qu.:4838095
 Median : 311195   Median :4842843
 Mean   : 311820   Mean   :4841655
 3rd Qu.: 318587   3rd Qu.:4846416
 Max.   :4845682   Max.   :4855952
</pre>
<p>First I look at the X_coord first and discover that the maximum value is not likely a Y_coord and it is the only “error” in this column. The code below shows the steps I took to identify and remove this outlier.</p>
<pre>
wm.df %>% arrange(desc(X_coord)) #error is X_coord = 4845681.6, not a Y_coord either
sort(wm.df$X_coord,decreasing = T)[1:3] # look at the top 3 largest values
summary(wm.df$X_coord) #identify the error/outlier
wm.df[which(wm.df$X_coord == max(wm.df$X_coord)),] #identify the row with the error/outlier
wm.df &lt;- wm.df[-which(wm.df$X_coord == max(wm.df$X_coord)),] #remove error 2000-01-22 </pre>
<p>Then for the Y_coord I do the same steps and discover there are three errors within this column. Again, the code below shows the steps I took to remove them.</p>
<pre> wm.df %>% arrange(Y_coord) #first three Y_coord are duplicates of X_coord
sort(wm.df$Y_coord,decreasing = F)[1:3] # Y_coord errors, three
wm.df[which(wm.df$Y_coord %in% sort(wm.df$Y_coord,decreasing = F)[1:3]),]
wm.df &lt;- wm.df[-which(wm.df$Y_coord %in% sort(wm.df$Y_coord,decreasing = F)[1:3]),] #remove these errors
</pre>
<p>Now I can aggregate the data by each week, month, and date simply using the <code>count</code> function from the <code>dplyr</code> package.</p>
<pre>
month.wm &lt;- wm.df %>% count(month) #month
week.wm &lt;- wm.df %>% count(week)
year.wm &lt;- wm.df %>% count(Year)
</pre>
<h2>Data Visualization</h2>
<p>Then we can use <code><a rel="nofollow" href="http://ggplot2.tidyverse.org/reference/" target="_blank">ggplot2</a></code> create a simple plot that visualizes the number of watermain breaks per week from 1990 to 2016.</p>
<pre>
ggplot(data = week.wm, aes(x=week,y=n)) +
   geom_line() + labs(title = &quot;Watermain Breaks in Toronto (1990-2016)&quot;,
                      x = &quot;Year&quot;, y = &quot;Number of Breaks per Week&quot;) +
  scale_x_datetime(date_breaks = &quot;2 years&quot;, date_labels = &quot;%Y&quot;) + theme_minimal()
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/simple_weekly_wm.png?w=456" data-orig-size="1100,337" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/simple_weekly_wm.png?w=456?w=300" data-attachment-id="1929" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/simple_weekly_wm.png?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/simple_weekly_wm/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/simple_weekly_wm.png?w=456?w=736" alt="simple_weekly_wm" data-image-title="simple_weekly_wm" sizes="(max-width: 736px) 100vw, 736px" data-comments-opened="1" class="wp-image-1929" data-recalc-dims="1"></p>
<p>It looks like there is some pattern over time with peaks occurring in a periodic fashion. Let’s take a look at the seasonality of watermain breaks by month and week. We can add a new column to our data frame that codes for the month using the <code>mutate</code> function.</p>
<pre>
mth.wm &lt;- wm.df %>% group_by(month,Year) %>%
count(month) %>%
mutate(month_n = as.factor(month(month, label = T)))

mthwk.wm &lt;- wm.df %>% group_by(week,month,Year) %>%
count(week,month,Year) %>%
mutate(month_n = as.factor(month(month, label = T))) %>%
mutate(yweek = week(week))
</pre>
<p>Then we can visualize this using boxplots representing the number of watermain breaks per month.</p>
<pre>
ggplot(mth.wm, aes(x=month_n,y=n)) +
geom_boxplot(aes(group=month_n)) +
labs(title = &quot;Seasonality of Watermain Breaks in Toronto (1990-2016)&quot;,
x = &quot;Month&quot;, y = &quot;Number of Breaks&quot;) + theme_minimal()
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/mth_season_wm.png?w=456" data-orig-size="900,500" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/mth_season_wm.png?w=456?w=300" data-attachment-id="1931" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/mth_season_wm.png?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/mth_season_wm/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/mth_season_wm.png?w=456?w=736" alt="mth_season_wm" data-image-title="mth_season_wm" sizes="(max-width: 736px) 100vw, 736px" data-comments-opened="1" class="wp-image-1931" data-recalc-dims="1"></p>
<p>Looking at the dark black line in each boxplot, we can see that there is a clear increase in the median number of watermain breaks in Toronto during the colder months (November, December, January, February). Let’s use the nifty <code>animation</code> package and create a .gif file to see how trend changes over the 27 year period. The boxplots in the animation below are for the entire time period from 1990 to 2016 and the changing line represents the median number of watermain breaks per month in the specified year in the title.</p>
<pre>
library(animation)
aspect.w <span data-mce-style="overflow:hidden;line-height:0" data-mce-type="bookmark"></span>&lt;- 800
aspect.r &lt;- 1.6
title.size &lt;- 20
ani.options(ani.width=aspect.w,ani.height=aspect.w/aspect.r, units=&quot;px&quot;)

saveGIF( {
  for (i in unique(mth.wm$Year)) {
    g.loop &lt;- ggplot(data=mth.wm, aes(x=month_n,y=n)) +
      geom_boxplot(aes(group=month_n)) +
      stat_summary(data = subset(mth.wm, Year == i), fun.y=median, geom=&quot;line&quot;,
                   aes(group=1), color = &quot;#222FC8&quot;, alpha = 0.6, size = 2) +
      labs(title = paste0(&quot;Seasonality of Watermain Breaks in Toronto (&quot;,i,&quot;)&quot;),
           x = &quot;Month&quot;, y = &quot;Number of Breaks per Month&quot;) +
      theme(plot.title = element_text(size = title.size, face = &quot;bold&quot;))
    print(g.loop)
    }
  }, movie.name = &quot;wm_wm.gif&quot;,interval=0.9,nmax=30,2)
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/wm_wm2.gif?w=456" data-orig-size="700,411" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/wm_wm2.gif?w=456?w=300" data-attachment-id="1936" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/wm_wm2.gif?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/wm_wm/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/wm_wm2.gif?w=456?w=700" alt="wm_wm" data-image-title="wm_wm" data-comments-opened="1" class="wp-image-1936" data-recalc-dims="1"></p>
<h2>Basic Time Series Decomposition</h2>
<p>Since I aggregated the counts of watermain breaks by month, we have a set of data points in discrete intervals over time. In a basic sense, this is a time series and many other types of data exist in this format (stock market data, weather data, digital signal data, etc.) and there is a wealth of science and methods that deal with this type of data. That deserves a post in itself to talk about. Back to watermains… to get a better idea of the periodic pattern we observed in the first line plot and if there is a general trend over the 27 year period, we can use some R packages to “decompose” the data, extract the seasonal and trend components of the watermain break time series, and visualize them. By looking at these output plots we can make some preliminary inferences on the watermain breaks happening from 1990 to 2016.</p>
<p>Since I am a <code>ggplot2</code> junkie, we’ll make sure we have the <code>ggfortify</code> package loaded in our R session and make use of the convenient <code>autoplot</code> function. First we’re going to create a time series object that contains the counts of watermain breaks per month from 1990 to 2016. The first argument in the <code>ts</code> function is the vector containing the counts of watermain breaks per month. We don’t necessarily have to worry about the column containing the date information since the second argument you can specify the start date <code>c(1990,1)</code> or January 1990 and the third argument you can specify the intervals/frequency of each data point; in this case since our time unit is a month we set the frequency to 12.</p>
<pre>
m.ts &lt;- ts(month.wm$n, start=c(1990,1), frequency=12)
</pre>
<p>Now that we have our <code>ts</code> object, we can use the convenient <code>autoplot</code> function to do a lazy plot the data. This is the monthly counts version of the first plot we made earlier in the post (which was counts per week).</p>
<pre>
autoplot(m.ts, main = &quot;Time Series Watermain Breaks per Month in Toronto&quot;)
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/autoplot_wm.png?w=456" data-orig-size="873,284" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/autoplot_wm.png?w=456?w=300" data-attachment-id="1938" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/autoplot_wm.png?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/autoplot_wm/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/autoplot_wm.png?w=456?w=736" alt="autoplot_wm" data-image-title="autoplot_wm" sizes="(max-width: 736px) 100vw, 736px" data-comments-opened="1" class="wp-image-1938" data-recalc-dims="1"></p>
<p>Then we use the <code><a rel="nofollow" href="https://stat.ethz.ch/R-manual/R-devel/library/stats/html/decompose.html" target="_blank">decompose</a></code> function to extract the seasonal and trend information from the time series. The output is a list of data frames containing the original time series, the seasonal component, trend component, random component, and some other attribute information. Here I use the option to assume an additive time series model since the seasonal variation looks pretty consistent. This <a rel="nofollow" href="https://anomaly.io/seasonal-trend-decomposition-in-r/" target="_blank">link</a> has a nice summary of the steps in decomposing a basic time series if you want to read further on this. The equation that this additive model is based on is below:</p>
<p><strong><span><i>Y[t] = T[t] + S[t] + e[t]</i></span></strong></p>
<p>Where <strong>Y</strong> is the data point per time unit (month) is equal to the sum of the three components: <strong>T</strong> – trend, <strong>S</strong> – seasonality, and <strong>e</strong> – a random component. In short, the random component is the the remainder of the trend and seasonal components and can be suggestive of outliers in the data while considering the trend and seasonality.</p>
<pre>
autoplot(decompose(m.ts, type = &quot;additive&quot;))
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/decomp_wm.png?w=456" data-orig-size="915,479" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/decomp_wm.png?w=456?w=300" data-attachment-id="1939" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/decomp_wm.png?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/decomp_wm/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/decomp_wm.png?w=456?w=736" alt="decomp_wm" data-image-title="decomp_wm" sizes="(max-width: 736px) 100vw, 736px" data-comments-opened="1" class="wp-image-1939" data-recalc-dims="1"></p>
<p>From this plot we see the original time series at the top with the facet label ‘data’ (we seen this twice now so it’s nothing new). The second plot show the seasonal component and since there is a definite repeating pattern with the peaks coinciding with the peaks of watermain breaks and we can conclude there is seasonality or periodicity with the data (and confirms what we saw with the monthly box plots). The third plot displays the trend while disregarding the seasonal component and we can see that over the time period there is a general decreasing trend of watermain breaks in Toronto. The final and fourth plot shows the remainder or random component and it describes any variation or deviation in the data that is not considered in the seasonal or trend data. We can see in the original data the high spike in 1994 has a spike in the remainder plot as well. We can make a general conclusion that there this is an extraordinary number of watermain breaks in that small window. A more systematic approach would be to predetermine an threshold in which a remainder value would be significant, since we see some deviations occurring the recent years.</p>
<h2>Spatial Data</h2>
<p>The dataset contains spatial information contained in the columns labelled <code> X_coord </code> and <code> Y_coord</code> . It seems like the City of Toronto uses the Modified Transverse Mercator (MTM), North American Datum 1927 (NAD27) with a truncated northing (-4,000,000) geographic coordinate system. <strong>I’m not very familiar with doing coordinate system conversions in R but I would appreciate any feedback on how to do this! </strong>Regardless of this, I decided to visualize the spatial information and get a general idea of where these breaks were happening and when. The code below takes the coordinate data and plots them using <code>ggplot2</code>.</p>
<pre>
ggplot(data = wm.df, aes(x = X_coord, y = Y_coord, color = year)) +
  geom_point(size = 1.5, alpha = 0.4) +
  scale_color_viridis(option = &quot;B&quot;) +
  labs(title = paste0(&quot;Map of Watermain Breaks&quot;),
       subtitle = paste0(&quot;City of Toronto (1990-2016)&quot;)) +
  theme(axis.text = element_blank(), axis.title = element_blank(),
        axis.ticks = element_blank(), panel.background = element_rect(fill = &quot;grey95&quot;,colour = &quot;grey5&quot;),
        legend.background = element_rect(fill = &quot;grey95&quot;),
        panel.grid.minor = element_blank(), panel.grid.major = element_blank(),
        plot.title = element_text(size = title.size, face = &quot;bold&quot;),
        plot.subtitle = element_text(size = title.size*0.6, face = &quot;plain&quot;),
        plot.background = element_rect(fill = &quot;grey95&quot;))
</pre>
<p><img data-orig-file="https://eugejjoh.files.wordpress.com/2017/12/wm_point_al.png?w=456" data-orig-size="900,585" data-medium-file="https://eugejjoh.files.wordpress.com/2017/12/wm_point_al.png?w=456?w=300" data-attachment-id="1940" data-image-meta="{" data-image-description="" src="https://eugejjoh.files.wordpress.com/2017/12/wm_point_al.png?w=456" data-permalink="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/wm_point_al/" data-large-file="https://eugejjoh.files.wordpress.com/2017/12/wm_point_al.png?w=456?w=736" alt="wm_point_al" data-image-title="wm_point_al" sizes="(max-width: 736px) 100vw, 736px" data-comments-opened="1" class="wp-image-1940" data-recalc-dims="1"></p>
<p>I am also a <code> <a rel="nofollow" href="https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html" target="_blank">viridis</a></code>package junkie if you haven’t noticed from my other <a rel="nofollow" href="https://incidental-ideas.org/2017/03/03/who-tuberculosis-data-ggplot2/" target="_blank">posts</a>. So as the legend says, the brighter yellow indicates a more recent watermain break. This plot isn’t too information since it shows all the watermain breaks over the entire 27 year period and we don’t have any reference for exact locations within the city of Toronto.</p>
<h2>So what does this mean…</h2>
<p>At first glance, you might be concerned after doing some quick mental math (35461 breaks over 27 years… ~1300 breaks per year) and conclude that tap water provided these pipes is not safe and the residents of Toronto should only drink bottled water for the rest of their lives. This is <em><strong>NOT</strong></em> the point of this post and nor does it suggest people should be overly paranoid with seeing this. The city of Toronto is well-resourced and have the capacity to response to these watermain breaks, isolate them, fix them in a timely manner, and resume service of safe drinking water. The health risk from these breaks shouldn’t concern the average Torontonian and since waterborne diseases are extremely rare in developed countries and Toronto makes sure that their four water treatment plants are fully functioning to make sure all the water is safe. If you want to more about watermain breaks in Toronto you can check out their <a rel="nofollow" href="https://www.toronto.ca/services-payments/building-construction/infrastructure-city-construction/understanding-city-construction/water-sewer-mains/" target="_blank">website</a> and read on how they are working hard behind the scene to ensure that you (if you live in Toronto) have access to safe drinking water.</p>
<p>Everything in the post are my own views and as always feedback, comments, suggestions are always welcome. I am constantly learning new things about using R and love to learn. Feel free to reach out to me</p>
<p> <a rel="nofollow" href="https://feeds.wordpress.com/1.0/gocomments/eugejjoh.wordpress.com/1923/" target="_blank"><img border="0" alt="" src="https://feeds.wordpress.com/1.0/comments/eugejjoh.wordpress.com/1923/"></a> <img border="0" alt="" src="https://i1.wp.com/pixel.wp.com/b.gif?resize=1%2C1&ssl=1" data-recalc-dims="1"></p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://incidental-ideas.org/2017/12/09/watermain-breaks-in-the-city-of-toronto/"> Incidental Ideas</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/nAmXOfHk8ds" height="1"></a></div>