Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Calling R in perl

by frozenwithjoy (Priest)
on Dec 16, 2012 at 01:12 UTC ( #1009032=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $R = Statistics::R->new();
    $R->set( 'filenames', \@filenames );
    ...
          width    = $plot_width,
          height   = $plot_height)`
    );
    
  2. or download this
    # Array of R commands:
    my $out1 = $R->run(
    ...
    print('ok')
    EOF
    my $out2 = $R->run($cmds);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009032]
help
Chatterbox?
[Corion]: You could even do the calculation directly - my $duration = $H * 3600+ $M*60 + $S; strftime '%H:%M:%S', timelocal($duratio n)
[Corion]: (and that strftime call is largely superfluous too, converting back to H:M:S isn't hard either)
[gnosti]: Corion: Thanks. Going to seconds, then back to H:M:S using strftime looks good.
[gnosti]: True, it's easy to go both ways ;-)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-08-18 09:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (297 votes). Check out past polls.

    Notices?