get_IR_data: get Interest Rate

Description Usage Arguments Examples

View source: R/IR.R

Description

get Interest Rate

Usage

1
get_IR_data(in_ir_file, from_year = NULL)

Arguments

in_ir_file

remote file or local file downloaded from http://www.freddiemac.com/pmms/docs/30yr_pmmsmnth.xls or http://www.freddiemac.com/pmms/docs/15yr_pmmsmnth.xls

from_year

Four digits representing the data starting year.

Examples

1
2
3
4
5
     ir30file <- "http://www.freddiemac.com/pmms/docs/30yr_pmmsmnth.xls"
     get_IR_data(ir30file, from_year =2017)

     ir15file <- "http://www.freddiemac.com/pmms/docs/15yr_pmmsmnth.xls"
     get_IR_data(ir15file, from_year =2010)

xdderekchen/rEconEnv documentation built on Feb. 23, 2020, 7:55 a.m.