Help for this page

Select Code to Download


  1. or download this
    use R;
    
    ...
    &R::initR("--silent");
    $x = &R::sum(1,2,3);
    print "Sum = $x\n";
    
  2. or download this
    # Calculate HWE goodness-of-fit p-value
    # Simply for readability of code passed to R
    ...
        #&R::call("print", $hwe);
    }
    return ( $hwe );
    
  3. or download this
    sub DESTROY {
         my $obj = $_[0];
    ...
         R::deleteRReference($_[0]);
         1;
     }