~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/data/generate_random.js

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function calculate () {
 
2
        if (getValue ("length.enabled.numeric")) {
 
3
                length = getValue ("length");
 
4
        } else {        // this happens when the saveto.parent is a data.frame, only.
 
5
                length = "dim (" + getValue ("saveto.parent") + ")[1]";
 
6
        }
 
7
 
 
8
        echo (".GlobalEnv$" + getValue ("saveto") + " <- rnorm (" + length + ", mean=" + getValue ("mean") + ", sd=" + getValue ("sd") + ")\n");
 
9
}