[R] New to R

MacQueen, Don m@cqueen1 @end|ng |rom ||n|@gov
Fri Sep 14 23:15:50 CEST 2018

If l.out is not a data frame, what is it? A list? A matrix? Some other structure? Try


and see what you get.

Can't help you convert it to a data frame without knowing what it is.

After you have a data frame, then write.table(), write.csv(), or write.csv2() will "convert" it to a CSV (assuming that's what you meant by "CVS".


p.s. use reply-all if you want to add that extra information .

Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
Lab cell 925-724-7509

On 9/14/18, 11:00 AM, "R-help on behalf of Jim Blackburn" <r-help-bounces using r-project.org on behalf of outlook_5DC74CB3034CB0A2 using outlook.com> wrote:

    I am newly subscribed to r-project.
    I have recently plunged into R on a totally self-taught basis (may not have been the smartest decision!)
    I am attempting to download tickers as a time series.  I can successfully create RDA files but I want to convert them to CVS.  Following is the code I have created so far.
    if (!require(BatchGetSymbols)) install.packages('BatchGetSymbols')
    tickers <- c('SPY','VCR', 'RPG')
    first.date <- Sys.Date()-365
    last.date <- Sys.Date
    l.out <- BatchGetSymbols(tickers = tickers,
           first.date = first.date,
           last.date = last.date,
    cache.folder = file.path("c://Users/Owner/Documents/R",
    +    'BGS_Cache') )
    I can print(l.out) and see that it contains all the data, but it is not a data.frame
    Can anyone help with creating a data.frame and then converting to CSV?
    Any help is GREATLY appreciated!
    Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
    	[[alternative HTML version deleted]]
    R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
    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