Skip to content

Commit

Permalink
Merge pull request #153 from utdata/crit
Browse files Browse the repository at this point in the history
minor fixes chap 9 tidy data
  • Loading branch information
critmcdonald authored Oct 20, 2024
2 parents 6a88f3e + 3bb5d71 commit a0d3958
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 33 deletions.
12 changes: 6 additions & 6 deletions data-processed/candy_avg.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
color,avg_candies
blue,11.5
brown,6.3
green,11.5
orange,10.8
red,6.4
yellow,9.4
blue,11.1
brown,6.5
green,11.4
orange,11.2
red,6.5
yellow,9.3
37 changes: 36 additions & 1 deletion data-raw/candy.csv
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,39 @@ Timestamp,First name,Last name,Candy type,Box code,Red,Green,Orange,Yellow,Blue,
2/28/2024 14:10:02,Alishba ,Javaid,Plain,233DRCLV02,5,9,11,12,7,10
2/29/2024 15:33:10,Emma,Fischer,Peanut,344CBTOP01,3,4,3,6,0,4
3/4/2024 14:40:39,Morgan,Severson,Plain,233DRCLV02,4,9,17,9,8,10
4/15/2024 5:08:04,Valerie ,Lopez ,Plain,334GTCLV20,4,17,9,7,12,6
4/15/2024 5:08:04,Valerie ,Lopez ,Plain,334GTCLV20,4,17,9,7,12,6
10/9/2024 13:04:23,Haley,Pacheco,Plain,233DRCLV02,6,9,16,12,6,9
10/9/2024 13:04:25,Nadely,Requena,Plain,233DRCLV02,4,9,16,10,9,11
10/9/2024 13:04:27,Juan,Ferro,Plain,233DRCLV02,5,15,13,6,11,6
10/9/2024 13:04:42,Francesca,Gigliotti,Plain,233DRCLV02,9,15,9,8,12,6
10/9/2024 13:05:00,Talisa ,Trevino,Plain,233DRCLV02,4,10,18,10,6,8
10/9/2024 13:05:09,Andred,Calixto,Plain,233DRCLV02,6,12,16,11,5,6
10/9/2024 13:05:29,London,Keller,Plain,233DRCLV02,5,9,17,11,10,8
10/9/2024 13:05:35,sandhya,maddali,Plain,233DRCLV02,11,10,7,13,9,7
10/9/2024 13:05:51,Moctezuma,Perez,Plain,233DRCLV02,8,11,14,10,9,7
10/9/2024 13:06:33,Ava,Motes,Plain,233DRCLV02,9,9,15,8,13,3
10/9/2024 13:06:39,Kendall,Washington ,Plain,340FSCLV02,8,12,14,6,12,5
10/9/2024 13:07:00,Haden,Knobloch,Plain,233DRCLV02,7,7,26,7,6,6
10/9/2024 13:07:19,Tate,Chapman,Plain,233DRCLV02,3,13,11,15,3,11
10/9/2024 13:07:20,Abby,Chapman,Plain,233DRCIV02,5,17,17,10,6,3
10/9/2024 13:07:58,Kiki,Craddock ,Plain,233DRCLV02,6,12,15,6,8,11
10/9/2024 13:08:04,Isabella,McGovern,Plain,233DRCLV02,5,8,17,14,9,5
10/9/2024 14:16:55,Jabba,The ahutt,Plain,239DRCLV02,5,9,14,17,9,2
10/10/2024 15:35:03,Mandira,Ganti,Plain,340FSCLV02,8,13,12,8,7,8
10/10/2024 15:35:40,Annika,Granados ,Plain,340FSCLV02,6,23,9,5,11,5
10/10/2024 15:35:42,Santiago,Ortiz,Plain,340FSCLV02,10,12,12,8,10,5
10/10/2024 15:35:51,Sophie,Pascal,Plain,233DRCLV02,5,11,17,13,4,7
10/10/2024 15:36:09,Lulia,Pan,Plain,340FSCLV02,8,11,10,8.5,10,9
10/10/2024 15:36:20,Hasina,Shah,Plain,233DRCLV02,4,11,15,11,9,6
10/10/2024 15:36:39,Rachel ,Thomas,Plain,1524976SE,10,8,7,7,11,13
10/10/2024 15:36:39,Robert,Martinez,Plain,340FSCLV02,8,8,10,9,12,10
10/10/2024 15:36:50,Alistair,Manliguez,Plain,340FSCLV02,7,9,11,6,13,9
10/10/2024 15:37:09,Vedika,Chati,Plain,340FSCLV02,9,6,16,7,8,9
10/10/2024 15:37:30,Sophia,Westwood,Plain,340FSCLV02,12,11,13,5,12,8
10/10/2024 15:37:31,Miranda,Liguez,Plain,233DRCLV02,11,10,12,11,4,9
10/10/2024 15:37:35,Isabella,Lawson,Plain,340FSCLV02,6,11,10,10,13,10
10/10/2024 15:39:54,Gabriella,Gonzales,Plain,233DRCLV02,5,6,19,9,11,8
10/10/2024 15:40:18,Laisa,Manrique,Plain,340FSCLV02,11,11,7,10,11,7
10/10/2024 15:50:46,amelie,baquero,Plain,239DRCLV02,9,13,11,7,13,9
10/10/2024 16:39:30,Angelica,Ruzanova,Plain,340FSCLV02,13,10,7,9,9,7
10/10/2024 17:04:47,Ryan,Hopper,Plain,233DRCLV02,9,8,6,4,6,5
4 changes: 2 additions & 2 deletions docs/denied-analysis.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/denied-cleaning.html
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ <h2 data-number="10.8" class="anchored" data-anchor-id="create-an-audit-benchmar
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["distname"],"name":[1],"type":["chr"],"align":["left"]},{"label":["sped_percent"],"name":[2],"type":["dbl"],"align":["right"]},{"label":["audit_flag"],"name":[3],"type":["chr"],"align":["left"]}],"data":[{"1":"SOUTH SAN ANTONIO ISD","2":"7.4","3":"BELOW"},{"1":"GIDDINGS ISD","2":"11.3","3":"ABOVE"},{"1":"HARTS BLUFF ISD","2":"4.0","3":"BELOW"},{"1":"MATAGORDA ISD","2":"14.2","3":"ABOVE"},{"1":"RIO HONDO ISD","2":"8.8","3":"ABOVE"},{"1":"YANTIS ISD","2":"12.1","3":"ABOVE"},{"1":"SALTILLO ISD","2":"11.4","3":"ABOVE"},{"1":"ARP ISD","2":"11.4","3":"ABOVE"},{"1":"ROTAN ISD","2":"8.6","3":"ABOVE"},{"1":"HURST-EULESS-BEDFORD ISD","2":"8.6","3":"ABOVE"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["distname"],"name":[1],"type":["chr"],"align":["left"]},{"label":["sped_percent"],"name":[2],"type":["dbl"],"align":["right"]},{"label":["audit_flag"],"name":[3],"type":["chr"],"align":["left"]}],"data":[{"1":"MUMFORD ISD","2":"8.3","3":"BELOW"},{"1":"CARTHAGE ISD","2":"11.2","3":"ABOVE"},{"1":"CORRIGAN-CAMDEN ISD","2":"10.6","3":"ABOVE"},{"1":"BENJAMIN ISD","2":"11.3","3":"ABOVE"},{"1":"ALVARADO ISD","2":"6.9","3":"BELOW"},{"1":"WALCOTT ISD","2":"14.8","3":"ABOVE"},{"1":"REFUGIO ISD","2":"19.0","3":"ABOVE"},{"1":"SHERMAN ISD","2":"13.4","3":"ABOVE"},{"1":"HERMLEIGH ISD","2":"10.3","3":"ABOVE"},{"1":"GILMER ISD","2":"8.9","3":"ABOVE"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/group-dates.html
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ <h2 data-number="12.4" class="anchored" data-anchor-id="making-reusable-date-par
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]}],"data":[{"1":"1986-11-08","2":"Wild Wild Life"},{"1":"2023-07-29","2":"Johnny Dang"},{"1":"2004-08-28","2":"Slow Motion"},{"1":"1974-01-19","2":"If We Make It Through December"},{"1":"1994-11-26","2":"Blind Man"},{"1":"1963-12-07","2":"Misery"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]}],"data":[{"1":"1972-06-17","2":"Woman's Gotta Have It"},{"1":"1979-12-22","2":"Forever Mine"},{"1":"1987-05-30","2":"Why Should I Cry?"},{"1":"1982-04-03","2":"Theme From Magnum P.i."},{"1":"1991-09-21","2":"The One And Only"},{"1":"1985-04-27","2":"Obsession"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand All @@ -563,7 +563,7 @@ <h3 data-number="12.4.1" class="anchored" data-anchor-id="lets-make-a-year"><spa
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["yr"],"name":[3],"type":["dbl"],"align":["right"]}],"data":[{"1":"1986-11-08","2":"Wild Wild Life","3":"1986"},{"1":"2023-07-29","2":"Johnny Dang","3":"2023"},{"1":"2004-08-28","2":"Slow Motion","3":"2004"},{"1":"1974-01-19","2":"If We Make It Through December","3":"1974"},{"1":"1994-11-26","2":"Blind Man","3":"1994"},{"1":"1963-12-07","2":"Misery","3":"1963"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["yr"],"name":[3],"type":["dbl"],"align":["right"]}],"data":[{"1":"1972-06-17","2":"Woman's Gotta Have It","3":"1972"},{"1":"1979-12-22","2":"Forever Mine","3":"1979"},{"1":"1987-05-30","2":"Why Should I Cry?","3":"1987"},{"1":"1982-04-03","2":"Theme From Magnum P.i.","3":"1982"},{"1":"1991-09-21","2":"The One And Only","3":"1991"},{"1":"1985-04-27","2":"Obsession","3":"1985"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand All @@ -583,7 +583,7 @@ <h3 data-number="12.4.2" class="anchored" data-anchor-id="the-magical-month"><sp
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["mo"],"name":[3],"type":["dbl"],"align":["right"]}],"data":[{"1":"1986-11-08","2":"Wild Wild Life","3":"11"},{"1":"2023-07-29","2":"Johnny Dang","3":"7"},{"1":"2004-08-28","2":"Slow Motion","3":"8"},{"1":"1974-01-19","2":"If We Make It Through December","3":"1"},{"1":"1994-11-26","2":"Blind Man","3":"11"},{"1":"1963-12-07","2":"Misery","3":"12"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["mo"],"name":[3],"type":["dbl"],"align":["right"]}],"data":[{"1":"1972-06-17","2":"Woman's Gotta Have It","3":"6"},{"1":"1979-12-22","2":"Forever Mine","3":"12"},{"1":"1987-05-30","2":"Why Should I Cry?","3":"5"},{"1":"1982-04-03","2":"Theme From Magnum P.i.","3":"4"},{"1":"1991-09-21","2":"The One And Only","3":"9"},{"1":"1985-04-27","2":"Obsession","3":"4"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand All @@ -599,7 +599,7 @@ <h3 data-number="12.4.2" class="anchored" data-anchor-id="the-magical-month"><sp
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["mo_label"],"name":[3],"type":["ord"],"align":["right"]},{"label":["mo_long"],"name":[4],"type":["ord"],"align":["right"]}],"data":[{"1":"1974-01-19","2":"If We Make It Through December","3":"Jan","4":"January"},{"1":"2023-07-29","2":"Johnny Dang","3":"Jul","4":"July"},{"1":"2004-08-28","2":"Slow Motion","3":"Aug","4":"August"},{"1":"1986-11-08","2":"Wild Wild Life","3":"Nov","4":"November"},{"1":"1994-11-26","2":"Blind Man","3":"Nov","4":"November"},{"1":"1963-12-07","2":"Misery","3":"Dec","4":"December"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["mo_label"],"name":[3],"type":["ord"],"align":["right"]},{"label":["mo_long"],"name":[4],"type":["ord"],"align":["right"]}],"data":[{"1":"1982-04-03","2":"Theme From Magnum P.i.","3":"Apr","4":"April"},{"1":"1985-04-27","2":"Obsession","3":"Apr","4":"April"},{"1":"1987-05-30","2":"Why Should I Cry?","3":"May","4":"May"},{"1":"1972-06-17","2":"Woman's Gotta Have It","3":"Jun","4":"June"},{"1":"1991-09-21","2":"The One And Only","3":"Sep","4":"September"},{"1":"1979-12-22","2":"Forever Mine","3":"Dec","4":"December"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand All @@ -618,7 +618,7 @@ <h3 data-number="12.4.3" class="anchored" data-anchor-id="floor-dates"><span cla
<div class="cell-output-display">
<div data-pagedtable="false">
<script data-pagedtable-source="" type="application/json">
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["fl_month"],"name":[3],"type":["date"],"align":["right"]},{"label":["fl_year"],"name":[4],"type":["date"],"align":["right"]}],"data":[{"1":"1986-11-08","2":"Wild Wild Life","3":"1986-11-01","4":"1986-01-01"},{"1":"2023-07-29","2":"Johnny Dang","3":"2023-07-01","4":"2023-01-01"},{"1":"2004-08-28","2":"Slow Motion","3":"2004-08-01","4":"2004-01-01"},{"1":"1974-01-19","2":"If We Make It Through December","3":"1974-01-01","4":"1974-01-01"},{"1":"1994-11-26","2":"Blind Man","3":"1994-11-01","4":"1994-01-01"},{"1":"1963-12-07","2":"Misery","3":"1963-12-01","4":"1963-01-01"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
{"columns":[{"label":["chart_date"],"name":[1],"type":["date"],"align":["right"]},{"label":["title"],"name":[2],"type":["chr"],"align":["left"]},{"label":["fl_month"],"name":[3],"type":["date"],"align":["right"]},{"label":["fl_year"],"name":[4],"type":["date"],"align":["right"]}],"data":[{"1":"1972-06-17","2":"Woman's Gotta Have It","3":"1972-06-01","4":"1972-01-01"},{"1":"1979-12-22","2":"Forever Mine","3":"1979-12-01","4":"1979-01-01"},{"1":"1987-05-30","2":"Why Should I Cry?","3":"1987-05-01","4":"1987-01-01"},{"1":"1982-04-03","2":"Theme From Magnum P.i.","3":"1982-04-01","4":"1982-01-01"},{"1":"1991-09-21","2":"The One And Only","3":"1991-09-01","4":"1991-01-01"},{"1":"1985-04-27","2":"Obsession","3":"1985-04-01","4":"1985-01-01"}],"options":{"columns":{"min":{},"max":[10]},"rows":{"min":[10],"max":[10]},"pages":{}}}
</script>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<meta name="author" content="Christian McDonald &amp; Jo Lukito">
<meta name="dcterms.date" content="2024-10-07">
<meta name="dcterms.date" content="2024-10-20">

<title>Reporting with Data in R</title>
<style>
Expand Down Expand Up @@ -405,7 +405,7 @@ <h1 class="title">Reporting with Data in R</h1>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">October 7, 2024</p>
<p class="date">October 20, 2024</p>
</div>
</div>

Expand Down
Loading

0 comments on commit a0d3958

Please sign in to comment.