Issue: In the below screenshot, I am assigning NAs to a specific year-range which previously has been unavailable in the MD3 object in question. The year-range is a vector of type integer64. However, as seen in the last output, the year that was already present in the MD3 object is for some reason put in the beginning. When I later try to impute NAs, it therefore treats 2023 as 1984 (i.e first instead of last), which messes up the imputations.
temp=euhp_aq["A.TOTAL.INX.PL:RO."]
temp[,as.character(2002:2004)]=NA #this works
temp[,1999:2001]=NA #this does not
temp[,"1999:2001"]=NA this does not either
Issue: In the below screenshot, I am assigning NAs to a specific year-range which previously has been unavailable in the MD3 object in question. The year-range is a vector of type integer64. However, as seen in the last output, the year that was already present in the MD3 object is for some reason put in the beginning. When I later try to impute NAs, it therefore treats 2023 as 1984 (i.e first instead of last), which messes up the imputations.
Screenshot: