Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $R = R::Writer->new();
    $R->var(y => $R->expression( 'a * x ^ 2' ));
    print $R->as_string(), "\n";
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    $R->var(y => $R->expression( 'a * x ^ 2' ));
    $R->call(c => \("x", "y"));
    print $R->as_string(), "\n";