When I read an excel file in R, a column of birth dates has some of its values converted to 5-digit integers (e.g. line 3). I guess they represent the number of days?
Here I would like to convert both the dates and the integers in the column 'DOB' into years (i.e. ages). I am using the age_calc function from eeptools package. Therefore I would like some help in converting all the values in the column into proper dates, so that I can use the age_calc function without returning errors. Thanks in advance.
df1[1:5,1:5]:
first_name last_name gender past_3_years_bike_related_purchases DOB
<chr> <chr> <chr> <chr> <chr>
1 Chickie Brister Male 86 1957-07-12
2 Morly Genery Male 69 1970-03-22
3 Ardelis Forrester Female 10 27269
4 Lucine Stutt Female 64 1979-01-28
5 Melinda Hadlee Female 34 1965-09-21
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…