1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
RWizard corr "Compute correlation" // Define a new R Wizard called "corr" and with description "Compute correlation"
Vars { // Define the variables (placeholders)
Block "Please select the variables..." // This will be a single dialog (screen) in the vertical order given
{
V1 "First variable" text [RSelector] // Variable named "V1" with description "First variable"
V2 "Second variable" text [RSelector] // of type text (there will be a editbox) followed by a selector of defined R entities
}
Block "... and the method" // This will be the next dialog (screen)
Method "Method" ["Pearson","Spearman","Kendall"] // this has type list and will be displayed as a combobox
}
}
Script { // If empty (the usual), use the standard wizard wizardry to read the defined variables :)
}
Template { // The actual R code template: only strange thing is the placeholders call using ${PLACEHOLDER_NAME}
cor.test( ${V1}, ${V2}, ${Method} );
}
|