getCalendarBy: Get a calendar over more than one time period from yahoo's...

Description Usage Arguments Details Note Author(s) References See Also Examples

Description

Given a from and to argument, download a calendar from every time period between those Dates, and merge them together into a data.frame.

Usage

1
2
3
4
5
  getCalendarByDay(FUN, from, to)

  getCalendarByWeek(FUN, from, to)

  getCalendarByMonth(FUN, from, to)

Arguments

FUN

a function to be applied to all time periods between from and to.

from

first time period contains this Date

to

last time period contains this Date

Details

These functions take a function that is designed to only download a calendar over a single timeperiod. They then apply that function over as many timeperiods as necessary to create a complete calendar from from to to.

Currently, .getEarningsCalendar and .getEconomicCalendarBriefing are used by getCalendarByDay, .getEconomicCalendarYahoo is used by getCalendarByWeek, and .getMergersCalendar is used by getCalendarsByMonth

Hopefully new ones will be written soon; Splits are in the works (which will use getCalendarByMonth as well as Earnings Surprises (which will use getCalendarByDay.)

Note

ALPHA CODE: Subject to change!

Author(s)

Garrett See

References

http://biz.yahoo.com/research/earncal/today.html

http://biz.yahoo.com/c/e.html

See Also

getEconomicCalendar, getEarningsCalendar

Examples

1
2
3
4
5
6
## Not run: 
getCalendarByDay('.getEconomicCalendar')
getCalendarByWeek('.getEarningsCalendar')
getCalendarByMonth('.getMergersCalendar', '2012-06-01')

## End(Not run)

qmao documentation built on May 2, 2019, 4:54 p.m.