JSL Question: How to select all continuous columns except date formatted columns?Hi,
I would like to select specific columns in a dataset by JSL and group them.
The selected columns need to have a X in the name -> Done
The selected columns need to have less than 5 category if it is a nominal variable -> Done
The selected columns is not a date if it is a continuous column -> I didn't find a way to test the format. Does anyone have an idea how to test the format? Once I use Get Format, I'm stuck for the comparison with a Date or the "Best" Format....
it is probably a stupid question.
Thank a lot for all your suggestions!
Florence
Re: JSL Question: Comment sélectionner toutes les colonnes continues à l'exception des colonnes formatées par date?salut @flo_kussener ,
Si je comprends bien votre question, vous recherchez une méthode pour tester si une colonne est un format de date ou non. Est-ce correct? Si tel est le cas, une façon de le faire est de tester si la colonne est numérique et a autre chose qu'un type d'entrée numérique:
If(
And(
:DateColumn << Get Data Type == "Numeric",
Not( Eval( Arg( :DateColumn << Get Input Format ) ) == "Numeric" )
),
doSomething
);
Ce n'est pas si joli, mais cela évite de devoir tester si << Get Format correspond à l'un des nombreux formats de date.