order_jelcode: Order JEL codes related to a text by rank

Description Usage Arguments Value

View source: R/find_jelcode.R

Description

The funcion allow to order JEL codes related to a text, considering the rank of each one. Rank can be determine by considering the frequency of the JEL codes (see count_jelcode) or their respective ratio (see ratio_jelcode).

Usage

1
order_jelcode(x, method = "Freq", position = 1)

Arguments

x

A string

method

The method selected to order JEL codes related to a text. There are two methods: "Ratio", "Freq". The default method is "Freq".

position

This argument indicates position of the code to be extracted. To extract the dominant JEL code, the position should be 1, and to extract the one with less importance, the position should be 2 and so on.

Value

The function returns a JEL code. It may return NA when there is no JEL code for a position considered


raulincadet/jelclassification documentation built on Dec. 22, 2021, 1 p.m.