Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Created September 23, 2013 06:15
Show Gist options
  • Save shohey1226/6666972 to your computer and use it in GitHub Desktop.
Save shohey1226/6666972 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Statistics::R;
my $R = Statistics::R->new();
$R->set('x', 5);
$R->run(q`y <- x^2`);
my $output_value = $R->get('y');
print "y = $output_value\n";
$R->stop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment