download_stocks: Download stock data

Description Usage Arguments Value Examples

View source: R/stocks.R

Description

Functions downloads historical stock data from YAHOO finance and returns a data frame with a special class "stockdata". The output can be serialized to protocol buffer "stocks".

Usage

1

Arguments

symbol

Stock ticker symbol. Usually string of 3 or 4 characters.

Value

a data frame with class "stockdata"

Examples

1
2
3
google <- download_stocks("GOOG");
serialize_pb(google, "msg_stocks.bin", "stocks");
serialize_pb(google, "msg_dataframe.bin", "dataframe");

jeroenooms/RProtoBufUtils documentation built on May 17, 2017, 6:16 p.m.