Salut, je suis un peu coincé et j'ai du mal à faire une boucle JMP. Comment puis-je boucler un tableau tabulé provenant de mes sous-ensembles de tableaux ? Le nombre de tableaux peut changer, j'ai donc pensé que je devais faire une boucle (mais j'ai du mal), j'ai également besoin de ces images ajoutées aux diapositives PowerPoint. Je ne sais pas comment obtenir le nom de la variable en boucle et l'ajouter aux diapositives.
Voici mon exemple de script, mais sans boucle. Est-il possible?
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Sex << Set Name( "Sex_Subset" );
dt << New Column( "Sex", Formula(:Sex_Subset));
dt1 = dt << Subset( By( :Sex_Subset ), All rows, Selected columns only( 0 ) );
//this is where to loop tabulated tables since column values used in subsetting dt may change number of values
//how to loop this according to data table name? is that possible?
dt_Tab = Tabulate(
Add Table(
Column Table( Grouping Columns( :Sex ), Analysis Columns( :height ) ),
Row Table( Grouping Columns( :name, :age ) )
)
);
tab = dt_Tab << get picture; //variable name needs to be looped? for ppt slides
//after getting the plot as image, how can I append those images that were loop to ppt slides?
//for male table
hbppt1 = H List Box(tab) << get picture;
ppt1 = Outline Box( "Male", hbppt1 );
ppt1 << savepresentation( pathppt, append, PNG );
//for female table
hbppt2 = H List Box(tab2) << get picture;
ppt2 = Outline Box( "Female", hbppt2 );
ppt2 << savepresentation( pathppt, append, PNG );
tables du sous-ensemble