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%3EConversion%20de%20mg%20%2F%20dl%20en%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%3ESALUT!!!%3C%2FP%3E%3CP%3EJ'ai%20une%20colonne%20et%20quelques-unes%20des%20mesures%20sont%20en%20mg%20%2F%20dL%20l'autre%20moiti%C3%A9%20en%20mg%20%2F%20L.%20Comment%20est%20la%20meilleure%20fa%C3%A7on%20de%20les%20convertir%3F%3C%2FP%3E%3CP%3EMerci%20d'avance!%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%20Conversion%20de%20mg%20%2F%20dL%20en%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%3ESi%20vous%20connaissez%20le%20nombre%20exact%20de%20lignes%20avec%20des%20donn%C3%A9es%20en%20mg%20%2F%20dL%20contre%20mg%20%2F%20L%2C%20vous%20pouvez%20cr%C3%A9er%20une%20nouvelle%20colonne%20avec%20une%20instruction%20%22If%22%20v%C3%A9rifiant%20que%20%22Row%20()%22%20soit%20inf%C3%A9rieur%20ou%20%C3%A9gal%20%C3%A0%20la%20ligne%20de%20seuil.%20%3CBR%20%2F%3E%20Si%20(Row%20()%20%26lt%3B%26gt%3B%2050%2C%20%3CBR%20%2F%3E%20%3A%20DATA%20*%2010%2C%20%3CBR%20%2F%3E%20%3ALES%20DONN%C3%89ES%20%3CBR%20%2F%3E%20)%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Si%20vous%20avez%20une%20colonne%20de%20r%C3%A9f%C3%A9rence%20avec%20les%20unit%C3%A9s%2C%20la%20m%C3%AAme%20instruction%20simple%20%22Si%22%20peut%20%C3%AAtre%20utilis%C3%A9e%20comme%20suit%20%3CBR%20%2F%3E%3CBR%20%2F%3E%20Si%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%3ALES%20DONN%C3%89ES%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