Description Usage Arguments Value Examples
It is a function to search the brand code
from the company name.
The stock code data uses the list of brands
listed on the Tokyo Stock Exchange
as of the end of December 2021 published by the JPX (
https://www.jpx.co.jp/markets/statistics-equities/misc/01.html).
The data used inside the function
can be confirmed by data(Brand Code)
.
Concatenate vectors containing company names with |
and return the matched company
with the str_detect
function of the stringr package.
1 | code_detect(firm)
|
firm |
a character vector. Specify company names |
return a list object. The "code" element contains a vector of stock codes. The "info" element contains the matched data.
1 2 3 | find <- code_detect(c("APAMAN", "YU-WA Creation Holdings"))
find$code #extract brand code
find$info #extract matched data
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.