diff --git a/content/page/exercise/day5/05-2-date-mischief-and-data-joins.Rmd b/content/page/exercise/day5/05-2-date-mischief-and-data-joins.Rmd index 07f78bc..8731dff 100644 --- a/content/page/exercise/day5/05-2-date-mischief-and-data-joins.Rmd +++ b/content/page/exercise/day5/05-2-date-mischief-and-data-joins.Rmd @@ -73,7 +73,9 @@ arrange(torg, date) > Icky...It looks like there are duplicate rows in the data. That seems to happen a lot. Since the temp value always appears to be the same for the duplicate row, I think it is safe to say the duplicate should be removed. -If you are 100% sure your data should not have duplicate rows in it, you can use the function `distinct( )` to keep only one row from each of the groups of duplicates. In the end, every row will be a distinct and unique row compared to ALL the others in the table. +
+ +If you are 100% sure your data should not have duplicate rows in it, you can use the function `distinct( )` to keep only one row from each of the groups of duplicates. In the end, every row will be a distinct and unique row compared to ALL others in the table. ```{r distinct} diff --git a/content/page/exercise/day5/05-2-date-mischief-and-data-joins.html b/content/page/exercise/day5/05-2-date-mischief-and-data-joins.html index 2d995e8..57db0b6 100644 --- a/content/page/exercise/day5/05-2-date-mischief-and-data-joins.html +++ b/content/page/exercise/day5/05-2-date-mischief-and-data-joins.html @@ -127,7 +127,8 @@

Step 1

Icky…It looks like there are duplicate rows in the data. That seems to happen a lot. Since the temp value always appears to be the same for the duplicate row, I think it is safe to say the duplicate should be removed.

-

If you are 100% sure your data should not have duplicate rows in it, you can use the function distinct( ) to keep only one row from each of the groups of duplicates. In the end, every row will be a distinct and unique row compared to ALL the others in the table.

+


+

If you are 100% sure your data should not have duplicate rows in it, you can use the function distinct( ) to keep only one row from each of the groups of duplicates. In the end, every row will be a distinct and unique row compared to ALL others in the table.

torg <- distinct(torg)

How many rows does torg have now?

@@ -216,23 +217,23 @@

Which island?

Make it a Date

-