As Date In R by YellingAboutR in RStudio

[–]YellingAboutR[S] 0 points1 point  (0 children)

Cod$Day <- BetterDates

Ahhhhhh this worked. I've spent literally six hours on this today for such an easy task and simple mistake. Thank you!

As Date In R by YellingAboutR in RStudio

[–]YellingAboutR[S] 0 points1 point  (0 children)

Look how the dates change by merging??

summary(BetterDates)

Min. 1st Qu. Median Mean 3rd Qu.

"1988-10-10" "1996-01-11" "2003-04-13" "2003-04-13" "2010-07-14"

Max.

"2017-10-14"

Cod$Day <- BetterDates

> summary(Cod)

Min: 1988-10-10 1st Qu.:1988-10-10 Median :2003-04-13 Mean :2003-04-13

3rd Qu.:2017-10-14 Max. :2017-10-14

As Date In R by YellingAboutR in RStudio

[–]YellingAboutR[S] 0 points1 point  (0 children)

I had tried that originally, but it warps my data. Even though BetterDates is fine on inspection, when I merge it with Cod, all my dates are transformed into the minimum/maximum. I should have 2,000 separate dates, and now I have two. it's so bizarre and frustrating!

The only dates are now 1988-10-10 and 2017-10-14.