File: corr.rwz~

package info (click to toggle)
gedit-r-plugin 0.8.0.2-Gtk3-Python3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,240 kB
  • ctags: 530
  • sloc: python: 5,016; xml: 562; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 995 bytes parent folder | download
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} );
}