[32228] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3493 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 7 21:09:21 2011

Date: Wed, 7 Sep 2011 18:09:06 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 7 Sep 2011     Volume: 11 Number: 3493

Today's topics:
    Re: R and Perl <cartercc@gmail.com>
        Where is man page for the types and function used in pe <pengyu.ut@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 7 Sep 2011 15:26:12 -0700 (PDT)
From: ccc31807 <cartercc@gmail.com>
Subject: Re: R and Perl
Message-Id: <808fdc80-2a06-4e05-bd59-c11626f329a4@q8g2000yqe.googlegroups.com>

On Sep 6, 3:03=A0am, azrazer <dsfq...@poupidoup.com> wrote:
> Could you be a bit more precise about what you want to do.

I have multiple data files that I will retrieve from a database query.
These will be on the order of 150K rows, and an indeterminate number
of columns. The columns will include both dates and status codes, and
I will need to build a data structure containing the cumulative count
of status codes over several months, day by day. Then, I need to build
graphical files with line charts.

This is currently done by hand in Excel, and I have been tasked with
automating the process.

Munging the data and getting the cumulative count per status code per
day is a snap in Perl, and while I've generated charts in Perl using
GD::Graph, using R is certainly a lot easier, and besides, I am
motivated to learn R.

> AFAIK, from experience, the best thing to do would be to format your
> data using Perl without making any modification on your data

The raw data needs to be processed. The 'data' that I will use will be
contained in hashes, the keys will be status codes, the sub keys will
be dates, and the values will be integers, sort of like this:

$hash{S}{20110601} =3D> 10
$hash{S}{20110602} =3D> 13
$hash{S}{20110603} =3D> 21
$hash{S}{20110604} =3D> 19
$hash{S}{20110605} =3D> 25
$hash{S}{20110606} =3D> 29
$hash{S}{20110607} =3D> 28

So, I can print out the hash in an R compatible data frame and use it
directly to generate a PDF.

> Could you be more precise about why you cannot use perl to generate the
> input data for R ? --and if so, why calling system() is a problem

I will use Perl to munge the data and produce as output an input file
for R. I want to be able to push a button and have the computer do all
the work.

Thanks for your reply, CC.


------------------------------

Date: Wed, 7 Sep 2011 17:38:31 -0700 (PDT)
From: Peng Yu <pengyu.ut@gmail.com>
Subject: Where is man page for the types and function used in perlembed?
Message-Id: <8b38d88c-8657-48d3-96c3-3d7e21e7e387@a13g2000yqd.googlegroups.com>

Hi,

I want to learn details on how to embed perl in C or C++. But I don't
see the man pages for the types and function used in perlembed? Does
anybody know?

Regards,
Peng


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3493
***************************************


home help back first fref pref prev next nref lref last post