[R] Financial Statements Date Subsetting

R. Michael Weylandt michael.weylandt at gmail.com
Fri May 18 12:26:03 CEST 2012


You're leaving out a step -- take a look at the examples for viewFin
and note that you have to download the financial data first with
getFin()

Michael

On Thu, May 17, 2012 at 9:53 PM, Brian Edmundson
<brianedmundson1 at gmail.com> wrote:
> Dear All,
>
> I'm new at R, but I really just need a couple of things.  The first thing I
> need is to figure out how to get each individual financial statement
> (CF,BS,IS).  I need each individual one because getting them all at once
> allows for formatting issues once it is a CSV.  The date subsetting is what
> I need because I will be running a statistical model in excel.  I know I
> could probably build a cleaner model in R, but I have already built it in
> excel.
>
> The first place I am stuck at is actually viewing the financials. I have
> gotten it to work a few times, but i am trying to script the installation
> sequence ( I still assume I have to load the packages as well - which I
> have done).
>
> I have tried this sequence downloading straight from the - i think - the
> CRAN mirror and I have also tried downloading this sequence straight from
> R-Project.com...
>
> install.packages("TTR")
> install.packages("zoo")
> install.packages("Defaults")
> install.packages("xts")
> install.packages("quantmod")
>
> this still (from both downloading sources) produces
>
> viewFin("GE.f", "BS", "Q")
> Error in viewFin("GE.f", "BS", "Q") : ‘x’ must be of type ‘financials’
>
> Any help would be greatly appreciated - thank everyone so much!
>
>
> --
> **Collateral Control Analyst II
> Banking Officer - BB&T
> 200 East 2nd Street Winston Salem, NC
> brianedmundson1 at gmail.com
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list