uwSplit: Process the Data for Rank

Description Usage Arguments Details Value

Description

Process the original primary bond market data for the rank, especially split the co-underwriting bond record into several records according to the number of the underwriter.

Usage

1
uwSplit(data, use.tidyr = TRUE)

Arguments

data

the original primary bond market data, which is read by the function getDataUsingWind, and it must contain column "underwriter."

use.tidyr

logical, whether to use tidyr::separate_rows

Details

The data returned by getDataUsingWind is used here. This is the step before ranking. It is easy to handle with the single underwriter record, however the co-underwriters are "pasted" into on string. This function split co-underwriters as they are seperated by ",". The param use.tidyr is TRUE in default, and this will use tidyr::separate_rows which will improve the speed obviously.

Value

A data.frame like the input one, however, every record has only one underwriter. And this data.frame will be used for ranking.


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