zeugner / MDstats

Loads SDMX data from major statistics providers into R and then fixes them. Can do data flags too.
0 stars 0 forks source link

MEDIUM PRIO - Problem with creating new years in md3 object #18

Open tobhec opened 2 months ago

tobhec commented 2 months ago

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: image

zeugner commented 1 month ago

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