/
fasstr_full_analysis.Rmd
540 lines (383 loc) 路 22.9 KB
/
fasstr_full_analysis.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
---
title: "Computing a Full Analysis with fasstr"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Computing a Full Analysis with fasstr}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r options, include=FALSE}
knitr::opts_chunk$set(eval = nzchar(Sys.getenv("hydat_eval")),
warning = FALSE,
message = FALSE)
```
```{r, include=FALSE}
library(fasstr)
```
`fasstr`, the Flow Analysis Summary Statistics Tool for R, is a set of [R](https://www.r-project.org/) functions to tidy, summarize, analyze, trend, and visualize streamflow data. This package summarizes continuous daily mean streamflow data into various daily, monthly, annual, and long-term statistics, completes trending and frequency analyses, with outputs in both table and plot formats.
This vignette documents the usage of the `compute_full_analysis()` and `write_full_analysis()` functions in `fasstr`. This vignette is a high-level adjunct to the details found in the function documentation (see `?compute_full_analysis` and `?write_full_analysis`). You鈥檒l learn what arguments to provide to the function to customize your analyses, what analyses are computed, and what outputs are produced.
## Overview
The full analysis functions produce a suite of tables and plots from the various `fasstr` functions. There are seven groups of analyses (see below) which are stored in lists in the created object for the `compute_` function and written into an Excel workbook (and accompanying image files) for the `write_` function. All of the data selection (`data` or `station_number` arguments), data filtering, water year selection, missing dates options, basin area, and `zyp` trending arguments are used in this function to customize your data and analysis.
The outputs are grouped into the following categories:
1) Screening
2) Long-term
3) Annual
4) Monthly
5) Daily
6) Annual Trends
7) Low-flow Frequencies
While by default the function will create all outputs from all categories, there is the option to select which groups are analyzed using the `analyses` argument. By default the `analyses` argument is `1:7`, with numbers 1 through 7 representing each of the categories as listed above. So `analyses = 1` would output only the screening outputs; while `analyses = c(1,3,5:7)` would output all but the long-term and monthly analyses.
## Functions and Data Inputs
### `compute_full_analysis()` Object List
When using this function all of the objects will be saved within a list with a first level of lists with each of the categories as listed above (ex. `$Screening` or `$Annual`). Within each of those lists are the outputted objects, or another list of objects (ex. `$Screening$Flow_Screening` or `$Annual$Annual_Flow_Timing`). Use subsetting techniques to extract an individual tibble or plot.
The following is an example of how to run the function and then how extract individual objects from the list:
``` {r, eval=FALSE}
mission_creek <- compute_full_analysis(station_number = "08NM116",
start_year = 1981,
end_year = 2000)
screening_plot <- mission_creek$Screening$Flow_Screening_Plot
daily_stats <- mission_creek$Daily$Daily_Summary_Stats
daily_stats_with_1985 <- mission_creek$Daily$Daily_Summary_Stats_with_Years$`1985_Daily_Statistics`
trends_results <- mission_creek$Trending$Annual_Trends_Results
```
### `write_full_analysis()` Excel and Image Files
The writing function provides a option to directly save all results onto your computer, thereby allowing the user to explore the outputs in Excel and image file formats. You will be required to provide the name of a the Excel file to create using the `file_name` argument. If the analyses in groups 5 and/or 6 are selected than a folder with the same name will be created to store a number of plots that are not suitable for the Excel file. By default it will save those plots in "pdf" format, but can be altered using the `plot_filetype` arguments, if necessary. Within the Excel workbook each of the tables and plots are saved within specific worksheets. The first worksheet in all outputs contain an overview of the analysis to know which arguments and options were used. The second worksheet contains the data provided to the function (the data frame or the data from HYDAT). The last worksheet (after all the analysis sheets) contain a table of `fasstr` functions that can replicate each individual analysis output for further customization (these functions are also contained within the comments of the cells with table and plot titles).
The following is an example of how to save all analyses to your computer:
``` {r, eval=FALSE}
write_full_analysis(station_number = "08NM116",
start_year = 1981,
end_year = 2000,
file_name = "Mission Creek")
```
## Usage, Options, and outputs
The following is a table that lists of all objects and files (if `write_to_dir = TRUE)` created using the `compute_full_analysis()` function, with their respective section list / folder, type of object, and the function use to produce the object:
Analyses | Object | Type | Function
--------------------------|-------------------------------------------|-------------------|------------------------------
1 - Screening | Daily_Flows | Table | `add_date_variables() %>% add_rolling_means() %>% add_basin_area()`
1 - Screening | Daily_Flows_Plot | Plot | `plot_flow_data()`
1 - Screening | Flow_Screening | Table | `screen_flow_data()`
1 - Screening | Flow_Screening_Plot | Plot | `plot_data_screening()`
1 - Screening | Missing_Dates_Plot | Plot | `plot_missing_dates()`
2 - Longterm | Longterm_Monthly_Summary_Stats_Percentiles| Table | `calc_longterm_monthly_stats()`
2 - Longterm | Longterm_Monthly_Summary_Stats_Plot | Plot | `plot_longterm_monthly_stats()`
2 - Longterm | Longterm_Daily_Summary_Stats_Percentiles | Table | `calc_longterm_daily_stats()`
2 - Longterm | Longterm_Monthly_Means_Plot | Plot | `plot_monthly_means()`
2 - Longterm | Longterm_Daily_Summary_Stats_Plot | Plot | `plot_longterm_daily_stats()`
2 - Longterm | Flow_Duration_Curves | Plot | `plot_flow_duration()`
3 - Annual | Annual_Summary_Stats | Table | `calc_annual_stats()`
3 - Annual | Annual_Summary_Stats_Plot | Plot | `plot_annual_stats()`
3 - Annual | Annual_Cumul_Volume_Stats_m3 | Table | `calc_annual_cumulative_stats(include_seasons=TRUE)`
3 - Annual | Annual_Cumul_Volume_Stats_m3_Plot | Multiple Plots | `plot_annual_cumulative_stats(include_seasons=TRUE)`
3 - Annual | Annual_Cumul_Yield_Stats_mm | Table | `calc_annual_cumulative_stats(use_yield=TRUE, include_seasons=TRUE)`
3 - Annual | Annual_Cumul_Yield_Stats_mm_Plot | Multiple Plots | `plot_annual_cumulative_stats(use_yield=TRUE)`
3 - Annual | Annual_Flow_Timing | Table | `calc_annual_flow_timing()`
3 - Annual | Annual_Flow_Timing_Plot | Plot | `plot_annual_flow_timing()`
3 - Annual | Annual_Normal_Days | Table | `calc_annual_normal_days()`
3 - Annual | Annual_Normal_Days_Plot | Plot | `plot_annual_normal_days()`
3 - Annual | Annual_Low_Flows | Table | `calc_annual_lowflows()`
3 - Annual | Annual_Low_Flows_Plot | Multiple Plots | `plot_annual_lowflows()`
3 - Annual | Annual_Means | Plot | `plot_annual_means()`
4 - Monthly | Monthly_Summary_Stats | Table | `calc_monthly_stats()`
4 - Monthly | Monthly_Summary_Stats_Plot | Multiple Plots | `plot_monthly_stats()`
4 - Monthly | Monthly_Total_Cumul_Volume_m3 | Table | `calc_monthly_cumulative_stats()`
4 - Monthly | Monthly_Total_Cumul_Volume_m3_Plot | Plot | `plot_monthly_cumulative_stats()`
4 - Monthly | Monthly_Total_Cumul_Yield_mm | Table | `calc_monthly_cumulative_stats(use_yield=TRUE)`
4 - Monthly | Monthly_Total_Cumul_Yield_mm_Plot | Plot | `plot_monthly_cumulative_stats(use_yield=TRUE)`
5 - Daily | Daily_Summary_Stats | Table | `calc_daily_stats()`
5 - Daily | Daily_Summary_Stats_Plot | Plot | `plot_daily_stats()`
5 - Daily | Daily_Summary_Stats_with_Years | Multiple Plots | `plot_daily_stats(add_year)`
5 - Daily | Daily_Total_Cumul_Volume_m3 | Table | `calc_daily_cumulative_stats()`
5 - Daily | Daily_Total_Cumul_Volume_m3_Plot | Plot | `plot_daily_cumulative_stats()`
5 - Daily | Daily_Total_Cumul_Volume_m3_with_Years | Multiple Plots | `plot_daily_cumulative_stats(add_year)`
5 - Daily | Daily_Total_Cumul_Yield_mm | Table | `calc_daily_cumulative_stats(use_yield=TRUE)`
5 - Daily | Daily_Total_Cumul_Yield_mm_Plot | Plot | `plot_daily_cumulative_stats(use_yield=TRUE)`
5 - Daily | Daily_Total_Cumul_Yield_mm_with_Years | Multiple Plots | `plot_daily_cumulative_stats(use_yield=TRUE, add_year)`
6 - Trending | Annual_Trends_Data | Table | `compute_annual_trends()`
6 - Trending | Annual_Trends_Results | Table | `compute_annual_trends()`
6 - Trending | Annual_Trends_Results_Plots | Multiple Plots | `compute_annual_trends(include_plots=TRUE)`
7 - Lowflow Frequencies | Freq_Analysis_Data (lowflows) | Table | `compute_annual_frequencies()`
7 - Lowflow Frequencies | Freq_Plot_Data | Table | `compute_annual_frequencies()`
7 - Lowflow Frequencies | Freq_Plot | Plot | `compute_annual_frequencies()`
7 - Lowflow Frequencies | Freq_Fitted_Quantiles | Table | `compute_annual_frequencies()`
### Objects Examples
The following are examples of the outputs from the full analysis functions. Each plot is presented and only the first six rows from each table.
#### 1. Screening
**Daily_Flows**
```{r, echo=FALSE, fig.height = 2.5, fig.width = 7, comment=NA}
plot_flow_data(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Daily Flows**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(fill_missing_dates(station_number = "08NM116") %>%
add_date_variables() %>%
add_rolling_means() %>%
add_basin_area() %>%
dplyr::filter(WaterYear >= 1990, WaterYear <= 2001)
))
```
**Flow_Screening**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(screen_flow_data(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Data_screening**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_data_screening(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Missing_Dates**
```{r, echo=FALSE, fig.height = 5, fig.width = 7, comment=NA}
plot_missing_dates(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
#### 2. Long-term
**Long-term_Monthly_Statistics_and_Percentiles**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_longterm_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001,
percentiles = seq(5, 95, by = 5),
transpose = TRUE)))
```
**Long-term_Monthly_Statistics**
```{r, echo=FALSE, fig.height = 2.5, fig.width = 7, comment=NA}
plot_longterm_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Long-term_Daily_Statistics_and_Percentiles**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_longterm_daily_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001,
percentiles = 1:99,
transpose = TRUE)))
```
**Long-term_Daily_Statistics**
```{r, echo=FALSE, fig.height = 2.5, fig.width = 7, comment=NA}
plot_longterm_daily_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Flow_Duration**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_flow_duration(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
#### 3. Annual
**Annual_Cumulative_Volume**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001,
include_seasons = TRUE)))
```
**Annual_Cumulative_Yield**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001,
include_seasons = TRUE,
use_yield = TRUE)))
```
**Annual_Normal_Days**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_normal_days(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Annual_Normal_Days**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_annual_normal_days(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Flow_Timing**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_flow_timing(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Annual_Flow_Timing**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_annual_flow_timing(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Low_Flows**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_lowflows(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Annual_Low_Flows**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_annual_lowflows(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Low_Flows_Dates**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_annual_lowflows(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[2]]
```
**Annual_Means**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_annual_means(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Statistics**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_annual_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Summary_Statistics**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_annual_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Annual_Total_Volume**
```{r, echo=FALSE, fig.height = 2, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Annual_Yield**
```{r, echo=FALSE, fig.height = 2, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001,use_yield = TRUE)[[1]]
```
**Four_Seasons_Total_Volume**
```{r, echo=FALSE, fig.height = 4, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116", include_seasons = TRUE,
start_year = 1990, end_year = 2001)[[3]]
```
**Four_Seasons_Yield**
```{r, echo=FALSE, fig.height = 4, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116", include_seasons = TRUE,
start_year = 1990, end_year = 2001,use_yield = TRUE)[[3]]
```
**Two_Seasons_Total_Volume**
```{r, echo=FALSE, fig.height = 2.5, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116", include_seasons = TRUE,
start_year = 1990, end_year = 2001)[[2]]
```
**Two_Seasons_Yield**
```{r, echo=FALSE, fig.height = 2.5, fig.width = 7, comment=NA}
plot_annual_cumulative_stats(station_number = "08NM116", include_seasons = TRUE,
start_year = 1990, end_year = 2001,use_yield = TRUE)[[2]]
```
#### 4. Monthly
**Monthly_Summary_Statistics**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Maximum_Monthly_Statistics**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[3]]
```
**Mean_Monthly_Statistics**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Median_Monthly_Statistics**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[2]]
```
**Minimum_Monthly_Statistics**
```{r, echo=FALSE, fig.height = 4.5, fig.width = 7, comment=NA}
plot_monthly_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[4]]
```
**Monthly_Cumulative_Volumetric_Stats**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_monthly_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Monthly_Cumulative_Volume**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_monthly_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Monthly_Cumulative_Yield_Stats**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_monthly_cumulative_stats(station_number = "08NM116", use_yield = TRUE,
start_year = 1990, end_year = 2001)))
```
**Monthly_Cumulative_Yield**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_monthly_cumulative_stats(station_number = "08NM116", use_yield = TRUE,
start_year = 1990, end_year = 2001)[[1]]
```
#### 5. Daily
**Daily_Summary_Statistics**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_daily_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Daily_Statistics**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Daily_Statistics_with_Years** (a folder with a plot for each year)
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_stats(station_number = "08NM116", add_year = 1990,
start_year = 1990, end_year = 2001)[[1]]
```
**Daily_Cumulative_Volume**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_daily_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)))
```
**Daily_Cumulative_Volumetric_Stats**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_cumulative_stats(station_number = "08NM116",
start_year = 1990, end_year = 2001)[[1]]
```
**Daily_Cumulative_Volume_with_Years** (a folder with a plot for each year)
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_cumulative_stats(station_number = "08NM116", add_year = 1990,
start_year = 1990, end_year = 2001)[[1]]
```
**Daily_Cumulative_Yield**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(calc_daily_cumulative_stats(station_number = "08NM116", use_yield = TRUE,
start_year = 1990, end_year = 2001)))
```
**Daily_Cumulative_Yield_Stats**
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_cumulative_stats(station_number = "08NM116", use_yield = TRUE,
start_year = 1990, end_year = 2001)[[1]]
```
**Daily_Cumulative_Yield_with_Years** (a folder with a plot for each year)
```{r, echo=FALSE, fig.height = 3, fig.width = 7, comment=NA}
plot_daily_cumulative_stats(station_number = "08NM116", add_year = 1990, use_yield = TRUE,
start_year = 1990, end_year = 2001)[[1]]
```
#### 6. Trending
**Annual_Trends_Data**
```{r, echo=FALSE, comment=NA}
trends <- compute_annual_trends(station_number = "08NM116", zyp_method = "zhang", zyp_alpha = 0.05,
start_year = 1990, end_year = 2001)
head(as.data.frame(trends[[1]]))
```
**Annual_Trends_Results**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(trends[[2]]))
```
**Annual_Trends_Results_Plots** (a folder with a plot for each statistic)
```{r, echo=FALSE, comment=NA, fig.height = 3, fig.width = 7}
trends[[51]]
```
#### 7. Low-flow Frequencies
**Annual_Lowflows**
```{r, echo=FALSE, comment=NA}
freq <- compute_annual_frequencies(station_number = "08NM116",
start_year = 1990, end_year = 2001)
head(as.data.frame(freq[[1]]))
```
**Plotting_Data**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(freq[[2]]))
```
**Frequency_Plot**
```{r, echo=FALSE, comment=NA, fig.height = 4, fig.width = 7}
freq[[3]]
```
**Fitted_Quantiles**
```{r, echo=FALSE, comment=NA}
head(as.data.frame(freq[[5]]))
```