cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-303091%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EAide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303091%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Ej'ai%20donc%20une%20table%20de%20donn%C3%A9es%20d'un%20capteur%20que%20je%20ne%20sais%20pas%20trop%20comment%20formater%20correctement.%20C'est%20un%20capteur%20de%20lumi%C3%A8re%20qui%20produit%20des%20lectures%20de%20tension.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELa%20premi%C3%A8re%20colonne%20du%20tableau%20est%20la%20longueur%20d'onde%20mesur%C3%A9e%2C%20puis%20il%20y%20a%20plus%20de%20100%20colonnes%20pour%20chaque%20instance%20de%20mesure%20des%20donn%C3%A9es.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EComment%20ferais-je%20pour%20transformer%20ou%20faire%20pivoter%20cela%20correctement%26nbsp%3B%3F%20Une%20simple%20transposition%20de%20table%20serait-elle%20la%20bonne%20activit%C3%A9%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnsuite%2C%20des%20conseils%20sur%20la%20fa%C3%A7on%20de%20convertir%20l'horodatage%20brut%20en%20une%20s%C3%A9rie%20temporelle%20utilisable%26nbsp%3B%3F%20Il%20sort%20comme%20%C3%A7a.%3C%2FP%3E%3CP%3EJJ-MM-AAAA%3AMM%3ASS.%23%23%23Z%3C%2FP%3E%3CP%3Eque%20puis-je%20faire%20pour%20convertir%20cela%20en%20une%20valeur%20de%20s%C3%A9rie%20chronologique%20utilisable%20pour%20tracer%20comme%20un%20axe%20des%20x%3F%20C'est%20au%20milli%C3%A8me%20de%20seconde%2C%20par%20incr%C3%A9ments%20de%200%2C1%20s.%3C%2FP%3E%3CP%3EBonus%2C%20comment%20faire%20pour%20trouver%20le%20min%20et%20le%20max%20et%20normaliser%20le%20temps%20%C3%A0%200--%26gt%3Bmax%20%3F%3C%2FP%3E%3CPRE%3E%3CCODE%3E...%0A14-07-2020T22%3A47%3A31.400Z%0A14-07-2020T22%3A47%3A31.500Z%0A14-07-2020T22%3A47%3A31.600Z%0A14-07-2020T22%3A47%3A31.700Z%0A14-07-2020T22%3A47%3A31.800Z%0A14-07-2020T22%3A47%3A31.900Z%0A...%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-303091%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EFusion%20et%20nettoyage%20des%20donn%C3%A9es%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303755%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303755%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMerci%20Jeff.%20Votre%20contribution%20%C3%A0%20cette%20%C3%A9quation%20finale%20est%20excellente%20et%20supprime%20l'inqui%C3%A9tude%20d'une%20course%20qui%20traverse%20minuit.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303684%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303684%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F6736%22%20target%3D%22_blank%22%3E%40aliegner1%3C%2FA%3E%20a%20%C3%A9crit%3A%3CBR%20%2F%3E%3CP%3EQuestion%20sur%20les%20horodatages%26nbsp%3B%3A%20comment%20puis-je%20convertir%20cela%20en%20une%20dur%C3%A9e%20brute%26nbsp%3B%3F%20Je%20vois%20qu'il%20y%20a%20la%20formule%20%22Date%20Difference%22%2C%20mais%20il%20semble%20qu'elle%20ait%20besoin%20de%20deux%20colonnes.%20Comment%20puis-je%20en%20faire%20une%20s%C3%A9rie%20chronologique%20commen%C3%A7ant%20%C3%A0%200%2C000%20s%20--%26gt%3B%20temps%20maximum%26nbsp%3B%3F%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAvant%20d'aller%20trop%20loin%2C%20je%20pense%20que%20nous%20devons%20clarifier%20cette%20question%20ici.%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%40txnelson%3C%2FA%3E%20interpr%C3%A9t%C3%A9%20cela%20comme%20si%20vous%20vouliez%20vous%20d%C3%A9barrasser%20de%20la%20partie%20date%20de%20la%20valeur%20datetime.%20Je%20ne%20pense%20pas%20que%20ce%20soit%20ce%20que%20tu%20veux.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EVous%20avez%20maintenant%20une%20colonne%20de%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUsing-dates-times-datetimes-and-durations-in-JMP%2Fba-p%2F68689%22%20target%3D%22_self%22%3E%20valeurs%20de%20date%20et%20d'heure%3C%2FA%3E%20.%20Cette%20colonne%20peut%20%C3%AAtre%20utilis%C3%A9e%20comme%20une%20s%C3%A9rie%20chronologique%2C%20elle%20ne%20commencera%20tout%20simplement%20pas%20%C3%A0%200.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESi%2C%20%C3%A0%20la%20place%2C%20vous%20pr%C3%A9f%C3%A9rez%20une%20colonne%20qui%20compte%20la%20diff%C3%A9rence%20de%20temps%20entre%20les%20lignes%20cons%C3%A9cutives%20du%20tableau%20de%20donn%C3%A9es%2C%20ce%20qui%20est%20facile%20%C3%A0%20faire%20avec%20une%20simple%20soustraction%20et%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FFormulas-in-JMP%2Fm-p%2F8557%2Fhighlight%2Ftrue%23M8551%22%20target%3D%22_self%22%3E%20indice%20de%20ligne%3C%2FA%3E%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-09-09_11-59-26.691.png%22%20style%3D%22width%3A%20654px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-09_11-59-26.691.png%22%20style%3D%22width%3A%20654px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-09_11-59-26.691.png%22%20style%3D%22width%3A%20654px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26664iDD15E973CB28C495%2Fimage-dimensions%2F654x440%3Fv%3Dv2%22%20width%3D%22654%22%20height%3D%22440%22%20role%3D%22button%22%20title%3D%222020-09-09_11-59-26.691.png%22%20alt%3D%222020-09-09_11-59-26.691.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJ'ai%20deux%20ou%20trois%20choses%20%C3%A0%20souligner%20ici%20%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EDans%20la%20premi%C3%A8re%20ligne%2C%20la%20valeur%20est%20d%C3%A9finie%20sur%200.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EJe%20n'ai%20pas%20besoin%20d'utiliser%20la%20fonction%20Date%20Difference()%20car%20je%20suis%20int%C3%A9ress%C3%A9%20par%20les%20valeurs%20en%20secondes.%20Ainsi%2C%20la%20simple%20soustraction%20fonctionne.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%C3%80%20cause%20de%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FFloating-point_arithmetic%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%20arithm%C3%A9tique%20en%20virgule%20flottante%3C%2FA%3E%20la%20diff%C3%A9rence%20entre%20ces%20valeurs%20ne%20sont%20pas%20pr%C3%A9cis%C3%A9ment%20sur%20les%20dixi%C3%A8mes%20de%20seconde.%20J'ai%20format%C3%A9%20cette%20colonne%20pour%20qu'elle%20s'affiche%20en%20dixi%C3%A8mes%20de%20seconde%2C%20c'est-%C3%A0-dire%20Fixed%20Dec%20avec%201%20d%C3%A9cimale.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EEnfin%2C%20mais%20peut-%C3%AAtre%20plus%20compliqu%C3%A9%2C%20votre%20question%20initiale%20indiquait%20que%20vous%20aviez%20plusieurs%20longueurs%20d'onde.%20Voulez-vous%20red%C3%A9marrer%20cette%20s%C3%A9quence%20temporelle%20%C3%A0%200%20pour%20chaque%20longueur%20d'onde%26nbsp%3B%3F%20Si%20c'est%20le%20cas%2C%20ce%20n'est%20pas%20un%20probl%C3%A8me.%20Il%20faudra%20juste%20quelques%20changements%20%C3%A0%20la%20formule.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-09-09_12-04-31.018.png%22%20style%3D%22width%3A%20854px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-09_12-04-31.018.png%22%20style%3D%22width%3A%20854px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-09_12-04-31.018.png%22%20style%3D%22width%3A%20854px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26665i2D507E852D7F4B84%2Fimage-dimensions%2F854x488%3Fv%3Dv2%22%20width%3D%22854%22%20height%3D%22488%22%20role%3D%22button%22%20title%3D%222020-09-09_12-04-31.018.png%22%20alt%3D%222020-09-09_12-04-31.018.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMaintenant%2C%20la%20formule%20v%C3%A9rifie%20la%20ligne%201%3CEM%3E%20ou%3C%2FEM%3E%20pour%20que%20la%20valeur%20lambda%20soit%20diff%C3%A9rente%20de%20la%20valeur%20lambda%20pr%C3%A9c%C3%A9dente%20(en%20utilisant%20le%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F15.2%2F%23page%2Fjmp%2Frow-functions.shtml%23ww246746%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%20Fonction%20d%C3%A9calage()%3C%2FA%3E%20)%20pour%20d%C3%A9finir%20la%20s%C3%A9quence%20sur%200.%3C%2FLI%3E%0A%3CLI%3EIl%20utilise%20%C3%A9galement%20Lag()%20pour%20obtenir%20la%20valeur%20de%20la%20s%C3%A9quence%20dans%20la%20ligne%20pr%C3%A9c%C3%A9dente%20et%20ajoute%20la%20diff%C3%A9rence%20dans%20les%20valeurs%20de%20temps%20entre%20les%20lignes%20actuelles%20et%20pr%C3%A9c%C3%A9dentes.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EJ'esp%C3%A8re%20que%20cela%20aide%20%C3%A0%20clarifier%20et%20%C3%A0%20fournir%20une%20bonne%20direction.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303660%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303660%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECompte%20tenu%20des%20questions%20que%20vous%20posez%2C%20ma%20premi%C3%A8re%20r%C3%A9ponse%20est%20que%20vous%20devez%20lire%20un%20peu.Vous%20devez%20parcourir%20les%20documents%20D%C3%A9couverte%20de%20JMP%20et%20Utilisation%20de%20JMP.Les%20deux%20sont%20disponibles%20dans%20la%20biblioth%C3%A8que%20de%20documentation%20JMP%20sous%20le%20menu%20d%C3%A9roulant%20Aide.%3C%2FP%3E%0A%3CP%3EEn%20ce%20qui%20concerne%20le%20probl%C3%A8me%20de%20d%C3%A9passement%20de%20jours%20...%20ce%20que%20vous%20devrez%20faire%20est%20de%20v%C3%A9rifier%20si%20la%20diff%C3%A9rence%20de%20date%20()%20est%20sup%C3%A9rieure%20%C3%A0%200%20jours%2C%20et%20si%20ce%20n'est%20pas%20le%20cas%2C%20calculez%20l'heure%20selon%20vos%20besoins.%3C%2FP%3E%0A%3CP%3ELamda%20n'a%20pas%20besoin%20d'%C3%AAtre%20remplac%C3%A9%20par%20un%20caract%C3%A8re.Mais%20cela%20peut%20facilement%20%C3%AAtre%20fait%20en%20changeant%20le%20type%20de%20donn%C3%A9es.Ou%20vous%20pouvez%20simplement%20changer%20le%20Type%20de%20mod%C3%A9lisation%20en%20Ordinal%20ou%20Nominal.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3ALamda%20%26lt%3B%26lt%3B%20Data%20Type(character)%3B%0A%2F%2F%20or%0A%3ALamda%26lt%3B%3CMODELING%20type%3D%22%22%3E%3C%2FMODELING%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303575%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303575%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EG%C3%A9nial%20Jim!%3C%2FP%3E%3CP%3Equelques%20questions%20pour%20voir%20ce%20que%20vous%20en%20pensez%20%3A%3C%2FP%3E%3CP%3E-%20comment%20se%20pr%C3%A9munir%20contre%20une%20course%20qui%20d%C3%A9passe%20minuit%20le%20lendemain%20%3F%20l'utilisation%20de%20l'heure%20du%20jour%20pour%20obtenir%20une%20heure%20absolue%20ou%20la%20normaliser%20pour%20qu'elle%20d%C3%A9marre%20%C3%A0%20z%C3%A9ro%20serait%20affect%C3%A9e%20par%20une%20ex%C3%A9cution%20s'%C3%A9talant%20sur%202%20jours.%3C%2FP%3E%3CP%3E-%20Des%20r%C3%A9flexions%20sur%20la%20conversion%20du%20col%20Lambda%20en%20une%20colonne%20de%20caract%C3%A8res%26nbsp%3B%3F%20C'est%20essentiellement%20une%20%C3%A9tiquette%2C%20elle%20ne%20devrait%20donc%20pas%20%C3%AAtre%20num%C3%A9rique%2C%20n'est-ce%20pas%26nbsp%3B%3F%20Sa%20mesure%20%C3%A0%20plusieurs%20longueurs%20d'onde%20t%20puis%20trace%20les%20donn%C3%A9es%20v%20temps.%3C%2FP%3E%3CP%3E-%20comment%20puis-je%20int%C3%A9grer%20le%20fichier%20d'origine%20dans%20la%20table%20de%20donn%C3%A9es%20nouvellement%20cr%C3%A9%C3%A9e%26nbsp%3B%3F%20J'ai%20chang%C3%A9%20le%20dt%20initial%20%3D%20--%26gt%3B%20en%20une%20bo%C3%AEte%20de%20dialogue%20d'ouverture%20de%20fichier.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22aliegner1_0-1599664781165.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22aliegner1_0-1599664781165.png%22%20style%3D%22width%3A%20142px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22aliegner1_0-1599664781165.png%22%20style%3D%22width%3A%20142px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26660i6B1747D608C7CB38%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22aliegner1_0-1599664781165.png%22%20alt%3D%22aliegner1_0-1599664781165.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303447%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303447%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoici%20un%20petit%20script%20qui%20devrait%20vous%20donner%20un%20bon%20%22coup%20de%20pouce%22%20pour%20mettre%20vos%20donn%C3%A9es%20dans%20un%20format%20analytique.%20Il%20prend%20votre%20exemple%20de%20table%20de%20donn%C3%A9es%20et%20cr%C3%A9e%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lamda.PNG%22%20style%3D%22width%3A%20567px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lamda.PNG%22%20style%3D%22width%3A%20567px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22lamda.PNG%22%20style%3D%22width%3A%20567px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26657iF4522B93612FB87C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lamda.PNG%22%20alt%3D%22lamda.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enames%20default%20to%20here(1)%3B%0Adt%3Dcurrent%20data%20table()%3B%0A%0A%2F%2F%20Get%20the%20column%20names%20from%20the%20data%20table%0AcolNames%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names%3B%0A%0A%2F%2F%20Remove%20Lamda%20from%20the%20list%0Aremove%20from(colNames%2C1%2C1)%3B%0A%0A%2F%2F%20Stack%20the%20data%0AdtStack%20%3D%20dt%20%26lt%3B%26lt%3B%20Stack(%0A%20columns(%0A%20%20colNames%0A%20)%2C%0A%20Source%20Label%20Column(%20%22Label%22%20)%2C%0A%20Stacked%20Data%20Column(%20%22Data%22%20)%2C%0A%20Output%20Table(%20%22Stacked%22%20)%0A)%3B%0A%0A%2F%2F%20Create%20a%20new%20JMP%20DateTime%20column%0AdtStack%20%26lt%3B%26lt%3B%20New%20Column(%20%22Timestamp%22%2C%0A%20Numeric%2C%0A%20%22Continuous%22%2C%0A%20Format(%20%22d%2Fm%2Fy%20h%3Am%3As%22%2C%2026%2C%203%20)%2C%0A%20Input%20Format(%20%22d%2Fm%2Fy%20h%3Am%3As%22%2C%200%20)%2C%0A%20Formula(%20Informat(%20Word(%201%2C%20%3ALabel%2C%20%22Z%22%20)%2C%20%22d%2Fm%2Fy%20h%3Am%3As%22%20)%20)%0A)%3B%0A%0A%2F%2F%20Remove%20formula%20to%20convert%20column%20to%20static%20values%0AdtStack%3ATimestamp%20%26lt%3B%26lt%3B%20delete%20formula%3B%0A%0A%2F%2F%20Create%20the%20Time%20variable%0Adtstack%20%26lt%3B%26lt%3B%20New%20Column(%20%22Time%22%2C%0A%20Numeric%2C%0A%20%22Continuous%22%2C%0A%20Format(%20%22hr%3Am%3As%22%2C%2017%2C%203%20)%2C%0A%20Input%20Format(%20%22hr%3Am%3As%22%2C%200%20)%2C%0A%20Formula(%20Time%20Of%20Day(%20%3ATimestamp%20)%20)%0A)%3B%0A%0A%2F%2F%20Get%20rid%20of%20no%20longer%20needed%20%22Label%22%20column%0AdtStack%20%26lt%3B%26lt%3B%20delete%20columns(%20%22Label%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303254%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303254%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoir%20le%20sous-ensemble%20joint%20(pr%C3%A9%20empil%C3%A9).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJe%20re%C3%A7ois%20l'heure%20de%20la%20journ%C3%A9e%2C%20mais%20je%20dois%20ensuite%20me%20pr%C3%A9munir%20contre%20les%20conditions%20lorsqu'une%20course%20se%20produit%20au-del%C3%A0%20de%20minuit%20et%20que%20le%20jour%20change%26nbsp%3B%3F%20Je%20le%20remets%20%C3%A0%20z%C3%A9ro%20en%20faisant%20%5Btime%20of%20day()%20-%20col%20minimum(time%20of%20day())%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303253%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303253%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EPour%20convertir%20une%20colonne%20Time%20Stamp(JMP%20Date%2FTime)%20en%20une%20valeur%20d'heure%20uniquement%2C%20utilisez%20la%20fonction%20Time%20of%20Day().%20Il%20renvoie%20effectivement%20le%20nombre%20de%20secondes%20entre%20le%20minuit%20pr%C3%A9c%C3%A9dent%20et%20l'heure%20de%20la%20mesure.%3CBR%20%2F%3E%20En%20ce%20qui%20concerne%20l'empilement%20lorsque%20les%20noms%20de%20colonnes%20changent%20d'un%20jour%20%C3%A0%20l'autre%20......%20il%20suffit%20d'obtenir%20une%20liste%20des%20colonnes%20de%20la%20table%20de%20donn%C3%A9es%2C%20puis%20d'appliquer%20cette%20liste%20aux%20instructions%20Stack%20Platform.%20Le%20message%20%C3%A0%20passer%20%C3%A0%20la%20table%20de%20donn%C3%A9es%20pour%20r%C3%A9cup%C3%A9rer%20les%20noms%20de%20colonnes%20est%20dt%20%26lt%3B%26lt%3B%20get%20column%20names().%3CBR%20%2F%3E%3CBR%20%2F%3E%20Serait-il%20possible%20de%20joindre%20un%20exemple%20de%20tableau%20de%20donn%C3%A9es%20ou%20de%20feuille%20de%20calcul%20de%20vos%20donn%C3%A9es.%20Il%20est%20assez%20difficile%20de%20voir%20les%20sp%C3%A9cificit%C3%A9s%20des%20donn%C3%A9es%20d'entr%C3%A9e%2C%20ce%20qui%20peut%20entra%C3%AEner%20la%20transmission%20de%20fausses%20instructions.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303252%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303252%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMerci%20Jim%20et%20Jeff%2C%20%C3%A7a%20marche%20tr%C3%A8s%20bien%26nbsp%3B!%20Je%20suis%20en%20train%20de%20lire%20word()%20en%20ce%20moment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestion%20sur%20les%20horodatages%26nbsp%3B%3A%20comment%20puis-je%20convertir%20cela%20en%20une%20dur%C3%A9e%20brute%26nbsp%3B%3F%20Je%20vois%20qu'il%20y%20a%20la%20formule%20%22Date%20Difference%22%2C%20mais%20il%20semble%20qu'elle%20ait%20besoin%20de%20deux%20colonnes.%20Comment%20puis-je%20en%20faire%20une%20s%C3%A9rie%20chronologique%20commen%C3%A7ant%20%C3%A0%200%2C000%20s%20--%26gt%3B%20temps%20maximum%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuestion%20sur%20le%20script%20de%20la%20commande%20stack%26nbsp%3B%3A%20en%20regardant%20le%20script%2C%20il%20a%20une%20ligne%20unique%20pour%20chaque%20colonne...%20comment%20rendre%20cela%20dynamique%20pour%20la%20prochaine%20fois%20que%20je%20tire%20ce%20fichier%20de%20donn%C3%A9es%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EData%20Table(%20%22Sheet1%22%20)%20%26lt%3B%26lt%3B%20Stack(%0Acolumns(%0A%3AName(%20%2214-07-2020T22%3A47%3A31.400Z%22%20)%2C%0A%3AName(%20%2214-07-2020T22%3A47%3A31.500Z%22%20)%2C%0A%3AName(%20%2214-07-2020T22%3A47%3A31.600Z%22%20)%2C%0A....for%20every%20column...%0A)%2C%0ASource%20Label%20Column(%20%22TimeStamp%22%20)%2C%0AStacked%20Data%20Column(%20%22data%22%20)%2C%0AOutput%20Table(%20%22sensor%20table%22%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303208%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303208%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJeff%2C%3C%2FP%3E%0A%3CP%3EJe%20suppose%20que%20mon%20%C3%A2ge%20montre%20.....%20vous%20m'avez%20encore%20battu%20%C3%A0%20la%20r%C3%A9ponse.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303207%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303207%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EConcernant%20vos%20donn%C3%A9es%2C%20je%20vous%20sugg%C3%A9rerais%20de%20vous%20pencher%20sur%20l'empilement%20des%20colonnes.Ce%20formulaire%20vous%20fournira%20davantage%20d'outils%20d'analyse%20JMP.%3C%2FP%3E%0A%3CP%3EEn%20ce%20qui%20concerne%20votre%20probl%C3%A8me%20d'horodatage...%20voici%20un%20exemple%20de%20script%20qui%20prend%20une%20colonne%20d'entr%C3%A9e%20appel%C3%A9e%20%22TS%22%20et%20la%20convertit%20en%20une%20colonne%20JMP%20Date%2FHeure.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20default%20to%20here(1)%3B%0Adt%20%3D%20New%20Table(%20%22Example%22%2C%0A%20Add%20Rows(%206%20)%2C%0A%20New%20Column(%20%22TS%22%2C%0A%20%20Character%2C%0A%20%20%22Nominal%22%2C%0A%20%20Set%20Values(%0A%20%20%20%7B%2214-07-2020T22%3A47%3A31.400Z%22%2C%20%2214-07-2020T22%3A47%3A31.500Z%22%2C%0A%20%20%20%2214-07-2020T22%3A47%3A31.600Z%22%2C%20%2214-07-2020T22%3A47%3A31.700Z%22%2C%0A%20%20%20%2214-07-2020T22%3A47%3A31.800Z%22%2C%20%2214-07-2020T22%3A47%3A31.900Z%22%7D%0A%20%20)%0A%20)%0A)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%20%22Column%202%22%2C%0A%20Numeric%2C%0A%20%22Continuous%22%2C%0A%20Format(%20%22d%2Fm%2Fy%20h%3Am%3As%22%2C%2026%2C%203%20)%2C%0A%20Input%20Format(%20%22d%2Fm%2Fy%20h%3Am%3As%22%2C%200%20)%2C%0A%20Formula(%20Informat(%20Word(%201%2C%20%3ATS%2C%20%22Z%22%20)%2C%20%22d%2Fm%2Fy%20h%3Am%3As%22%20)%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-303206%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20Aide%20pour%20transformer%20une%20table%20et%20convertir%20un%20horodatage%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-303206%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20pense%20que%20tout%20ce%20dont%20tu%20as%20besoin%20est%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F15.2%2F%23page%2Fjmp%2Fstack-columns.shtml%23%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%20Tableaux-%26gt%3B%20Pile%3C%2FA%3E%20en%20pla%C3%A7ant%20vos%20colonnes%20de%20temps%20dans%20le%20r%C3%B4le%20Stack%20Columns.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EVous%20devriez%20vous%20retrouver%20avec%20deux%20colonnes%2C%20longueur%20d'onde%20et%20heure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEn%20ce%20qui%20concerne%20la%20conversion%20de%20votre%20horodatage%20en%20une%20colonne%20datetime%20JMP%2C%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F15.2%2F%23page%2Fjmp%2Fcharacter-functions.shtml%23ww128266%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%20Mot()%3C%2FA%3E%20et%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F15.2%2F%23page%2Fjmp%2Fdate-time-functions.shtml%23ww123225%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E%20Informer()%3C%2FA%3E%20sont%20mon%20rendez-vous%20ici%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222020-09-08_21-09-56.037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-08_21-09-56.037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222020-09-08_21-09-56.037.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F26652i9437615BB34CD0A7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%222020-09-08_21-09-56.037.png%22%20alt%3D%222020-09-08_21-09-56.037.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELecture%20compl%C3%A9mentaire%26nbsp%3B%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Blog%2FIf-you-learn-only-one-Formula-Editor-function-Word-is-the-one%2Fm-p%2F30381%23U30381%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-blog-thread%20lia-fa-icon%20lia-fa-blog%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3ESi%20vous%20n'apprenez%20qu'une%20seule%20fonction%20de%20l'%C3%A9diteur%20de%20formules%2C%20Word()%20est%20celle%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUsing-dates-times-datetimes-and-durations-in-JMP%2Fm-p%2F68689%23U68689%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-blog-thread%20lia-fa-icon%20lia-fa-blog%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3EUtilisation%20de%20dates%2C%20d'heures%2C%20de%20dates-heures%20et%20de%20dur%C3%A9es%20dans%20JMP%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
aliegner1
Level IV

Help doing a table transform and converting a timestamp?

so I've got a data table from a sensor that I am not quite sure how to get formatted correctly. It's a light sensor that outputs voltage readings.

 

The first column in the table is the wavelength measured and then there's 100+ columns for each time instance it measures data.

 

How would I go about transforming or pivoting this correctly? Would just a Table Transpose be the correct activity?

 

Next, advice on how to convert raw timestamp into a usable timeseries? It comes out looking like this.

DD-MM-YYYYTHH:MM:SS.###Z

what can I do to convert this into a usable timeseries value to plot as an x-axis? It's down to the thousandth of a second, 0.1s increments.

Bonus, how to do this to find the min and max and normalize the time to be 0-->max?

...
14-07-2020T22:47:31.400Z
14-07-2020T22:47:31.500Z
14-07-2020T22:47:31.600Z
14-07-2020T22:47:31.700Z
14-07-2020T22:47:31.800Z
14-07-2020T22:47:31.900Z
...

 

 

11 REPLIES 11
Jeff_Perkinson
Community Manager Community Manager

Re: Help doing a table transform and converting a timestamp?


@aliegner1 wrote:

Question about the timestamps: how would I convert this to a raw time duration? I'm seeing there's the "Date Difference" formula, but it looks like it needs two columns. How do I just make this a time series starting at 0.000s --> max time?

 

Before we go too much further I think we need to clarify this question here. @txnelson interpreted that as you wanting to get rid of the date portion of the datetime value. I don't think that's what you want.

 

You've now got a column of datetime values. That column can be used as a time series, it just won't start at 0.

 

If, instead, you'd rather a column that counted the time difference between consecutive rows of the data table that's easy to do with simple subtraction and row subscripting.

 

2020-09-09_11-59-26.691.png

 

I have a couple of things to point out here:

  • In the first row the value is set to 0.
  • I don't need to use the Date Difference() function because I'm interested in the values in secs. So, simple subtraction works.
  • Because of floating point arithmetic the difference in these values aren't precisely on the tenths of a second. I've formatted this column to display in tenths of a second, i.e. Fixed Dec with 1 decimal place.
  • Finally, but perhaps more complicated is that your original question said that you had multiple wavelengths. Do you want to restart this time sequence at 0 for each wavelength? If so, that's not a problem. It will just take a couple of changes to the formula.

2020-09-09_12-04-31.018.png

  • Now the formula checks for row 1 or for the lamda value to be different from the previous lambda (using the Lag() function) to set the sequence to 0.
  • It also uses Lag() to get the value of the sequence in the previous row and adds the difference in the time values between the current and previous rows.

I hope this helps clarify and provide a good direction.

 

 

 

 

-Jeff
aliegner1
Level IV

Re: Help doing a table transform and converting a timestamp?

Thank you Jeff. Your input on that final equation is great and removes the worry about a run that crosses midnight.

Recommended Articles