Date question on R
Using this code dfCrim3 = mutate(dfCrime2, YEAR= year(as.Date(dfCrime2$CrimeDate, format =‘%m%d%Y’))). .Normaly I should have a new column with only date in 4digits, but it is showing me NA, Can Someone help me?///
thank youuu
1 answers ( 0 marked as helpful)
Hi Patrice,
thanks for reaching out! Could you let us know which lecture this is referring to or add a link to it?
Best,
Eli