medizininformatik-initiative / Projectathon7-VHF

Repository für den 7. MII Projectathon
6 stars 1 forks source link

unify units: transfer labels to NTproBNP.unit #1

Closed Tessi87 closed 1 year ago

Tessi87 commented 1 year ago

Bei uns ist nur NTproBNP.unitLabel befüllt. Der Code in Zeile 242 'cohort[is.na(NTproBNP.unit),NTproBNPunit := NTproBNP.uniLabel] funktioniert allerdings bei uns nicht, und es werden keine Werte in NTproBNP.unit geschrieben. Die Spalte NTproBNPunit steht nach der Codezeile weiterhin auf NA.

Mit folgenden Änderungen läuft der Code bei uns durch: cohort[,NTproBNP.unit := NTproBNP.unitLabel]. Dies funktioniert aber nur, weil bei uns alle Werte in NTproBNP.unit auf NA stehen.

astruebi commented 1 year ago

Das Problem ist behoben.