cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-216358%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EUmwandlung%20von%20mg%20%2F%20dL%20in%20mg%20%2F%20L%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216358%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHALLO!!!%3C%2FP%3E%3CP%3EIch%20habe%20eine%20Spalte%20und%20einige%20Ma%C3%9Fe%20sind%20in%20mg%20%2F%20dl%20angegeben%2C%20die%20andere%20H%C3%A4lfte%20in%20mg%20%2F%20l.%20Wie%20kann%20man%20sie%20am%20besten%20konvertieren%3F%3C%2FP%3E%3CP%3EDanke%20im%20Voraus!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216390%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Umwandlung%20von%20mg%20%2F%20dL%20in%20mg%20%2F%20L%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216390%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EWenn%20Sie%20die%20genaue%20Anzahl%20der%20Zeilen%20mit%20Daten%20in%20mg%20%2F%20dL%20im%20Vergleich%20zu%20mg%20%2F%20L%20kennen%2C%20k%C3%B6nnen%20Sie%20eine%20neue%20Spalte%20mit%20einer%20If-Anweisung%20erstellen%2C%20in%20der%20%C3%BCberpr%C3%BCft%20wird%2C%20ob%20%22Row%20()%22%20kleiner%20oder%20gleich%20der%20Schwellenwertzeile%20ist.%20%3CBR%20%2F%3E%20If%20(Row%20()%20%26lt%3B%3D%2050%2C%20%3CBR%20%2F%3E%20%3A%20DATA%20*%2010%2C%20%3CBR%20%2F%3E%20%3ADATEN%20%3CBR%20%2F%3E%20)%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Wenn%20Sie%20eine%20Referenzspalte%20mit%20den%20Einheiten%20haben%2C%20kann%20dieselbe%20einfache%20%22If%22%20-Anweisung%20wie%20folgt%20verwendet%20werden%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Wenn%20(UNIT%20%26lt%3B%3D%20%22mg%20%2F%20dL%22%2C%20%3CBR%20%2F%3E%20%3A%20DATA%20*%2010%2C%20%3CBR%20%2F%3E%20%3ADATEN%20%3CBR%20%2F%3E%20)%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Batista
Level II

Converting mg/dL to mg/L

HI!!!

I have a column and I have some of the measures are in mg/dL the other half in mg/L . How is the best way to convert them?

Thank you in advance!

1 REPLY 1
Thierry_S
Super User

Re: Converting mg/dL to mg/L

If you know the exact number of rows with data in mg/dL vs. mg/L, you can create a new column with an "If" statement checking for the "Row()" to be smaller or equal to the threshold row.
If( Row() <= 50,
:DATA * 10,
:DATA
)

If you have a reference column with the Units, the same simple "If" statement can be used as follows

If( UNIT <= "mg/dL",
:DATA * 10,
:DATA
)
Thierry R. Sornasse

Recommended Articles