| fry9c | R Documentation |
Class providing an object to manipulate a FR Y-9c and component schedules
Class providing an object to manipulate a FR Y-9c and component schedules
Fry9c(date, omb_number, title)
date |
The date associated with the FR Y-9c |
omb_number |
The OMB number of the FR Y-9c documentation. Something like "7100-0128" |
title |
The title of the FR Y-9c. Something like "Consolidated Financial Statements for Holding Companies–FR Y-9c" |
an object of class fry9c
new()initialize the class
.fry9c$new(date, omb_number, title)
dateThe date associated with the FR Y-9c
omb_numberThe OMB number of the FR Y-9c documentation. Something like "7100-0128"
titleThe title of the FR Y-9c. Something like "Consolidated Financial Statements for Holding Companies–FR Y-9c"
add()add a new schedule
.fry9c$add(sched)
scheda schedule
getSchedule()Get a schedule by the desig
.fry9c$getSchedule(desig)
desigAn identifier for a component schedule
initializeData()initialize the values in each schedule and component
.fry9c$initializeData(dat)
datA dataset from the Fed with all FR Y-9c data for a quarter. The dataset contains columns with names that correspond to keys
print()print the schedules and components as a string
.fry9c$print()
addBankNames()add bank_names to this object
.fry9c$addBankNames(bank_names)
bank_namesa vector of bank names to be stored in the schedule
exportExcel()export an Excel file
.fry9c$exportExcel(output_file_name)
output_file_nameoutput file name
getDate()Get the Date
.fry9c$getDate()
getOmbNumber()get the OMB number
.fry9c$getOmbNumber()
getTitle()Get the title
.fry9c$getTitle()
clone()The objects of this class are cloneable with this method.
.fry9c$clone(deep = FALSE)
deepWhether to make a deep clone.
f <- Fry9c("20180331", "7100-0128",
"Consolidated Financial Statements for Holding Companies--FR Y-9c")
x <- Schedule("HI", "Income Statement")
y <- Component("1.a.", "Income", "ZZZZ1234")
y$add(Component("1.a.(1)", "Sub-Income", "ABCD5555"))
x$add(y)
f$add(x)
f$initializeData(data.frame(ZZZZ1234 = 1:4,
ABCD5555 = 5:8))
print(f)
f$getSchedule("HI")$getDesig() == "HI"
f$addBankNames(paste("bank", LETTERS[1:4], sep=""))
## Not run:
f$exportExcel(tempfile(fileext = ".xlsx"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.