Learn R Programming

rusquant (version 1.1.4)

getEarnings: Download earnings data from investing.com

Description

This function retrieves earnings data from the investing.com website for a specified time period

Usage

getEarnings(
  from = Sys.Date() - 5,
  to = Sys.Date() + 5,
  country = "United States"
)

Value

a data frame with earnings data

Arguments

from

the start date in yyyy-mm-dd format (default is 10 days prior to current date)

to

the end date in yyyy-mm-dd format (default is the current date)

country

the country from which to get earnings data (default is United States)

Author

Vyacheslav Arbuzov

Examples

Run this code
getEarnings(from = Sys.Date(),to = Sys.Date()+5,country='Belgium')

Run the code above in your browser using DataLab