I am struggling to replace missing data with a particular value in my dataset which has multiple duplicate entries by row. for example

id Type Date Scan
1 9 . .
1 . 2004 1
2 10 . .
2 . 2006 1

how do I replace the missing data in each column by the id?

i.e I want all of those with id 1 to have type 9 date 2004 and scan 1

thank you in advance