google_dat: Get stock values from Google Finance

Description Usage Arguments Value Examples

View source: R/get.R

Description

Get stock values from Google Finance

Usage

1
2
google_dat(symbols, file_out = FALSE, file_name = "investments.txt",
  append = TRUE)

Arguments

symbols

A character vector of symbols to look up on Google Finance

file_out

An optional file name to append comma-delimited data to. This file must already exist.

file_name

The name of the file to write to.

append

Should the data be appended to file_name?

Value

A data frame with current values for each stock symbol. The first column will contain today's date.

Examples

1
2
3
s <- c("VAB", "XRB", "ZRE", "XEC", "XEF", "XIC",
  "VUN", "TDB909", "TDB911")
google_dat(s)

seananderson/spudr documentation built on May 29, 2019, 4:26 p.m.