dominant_jelcode: Dominant JEL code(s) in a text

Description Usage Arguments Value

View source: R/find_jelcode.R

Description

A function to identify the dominant(s) JEL code(s) in a string, considering the frequency or the ratio of repeated JEL codes.

Usage

1
dominant_jelcode(x, method = "Ratio")

Arguments

x

A string

method

The method selected for the comparison, to identify the dominant JEL code(s). There are two methods: "Ratio", "Freq". The default method is "Freq".

Value

The function returns a vector of the dominant(s) JEL code(s), account for the code(s) with the maximum value for the chosen method.


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