rank: Quick Rank Function

Description Usage Arguments Details Value

Description

Quickly obtain the ranking result with many params have been given usually used values. Of course, it depends on the original Excel data file.

Usage

1
2
rank(envir = .GlobalEnv, file, update = FALSE, save = FALSE, type, start,
  end, date_type, output, sheet = "Rank", open = FALSE, print.head = TRUE)

Arguments

envir

the name of the environment save and get the data, default is the Global Environment

file

the file name of Excel data file

update

logical, default is FALSE, if TRUE the function will be forced to read the Excel file to get the original bond data, otherwise, it will check if there exists the data and use it without reading again

save

logical, default FALSE, when TRUE the rank result will be saved to Excel file

type

character, used to choose which type of credit bond to be filtered, if the type is incorrect, the function will stop and give message

start

the start date, can be string like "2016-01-01"

end

the end date, can be string like "2016-01-01"

date_type

the date type used to filtered data, "initdate" or "carrydate"

output

the file name of Excel, used when param **save** is TRUE

sheet

the sheet name, default "Rank"

open

logical, if TRUE, the output file will be opened, default is FALSE

print.head

logical, default TRUE, when the function is called, the top 20 will be printed as referenced

Details

This function comprehensively use other functions in the package and quickly gives the underwriter result. Though, there are many params, most of which are pass to the functions used, and in fact, they have the default value. That is to say that if you just type rank(), it will read and compute the ranking result. At this time, the result is fully based on the input data file, however you are sure to allow add filter params later.

The function will show the top 20 by default, and surely can save the result to Excel file, at the same time **assign** the result to the *envir* given, which can be found as named uwrk ("Underwriters Ranking").

Value

The ranking result, can be saved into an Excel file.


baixueyuan/pryrk documentation built on May 11, 2019, 5:26 p.m.