cop_stand_le: Remove Legal Entities from String

Description Usage Arguments Value Examples

View source: R/company_name_functions.R

Description

This function is part of the 'company operations' (cop) function set
This function standardizes or removes legal entities from character strings with company name

Usage

1
2
cop_stand_le(string, le.op = c("remove", "stand"),
  table.return = FALSE)

Arguments

string

A chracter string

le.op

Legal Entity Operation: Should the legal entity be removed or standardized?

table.return

Should the whole table with legal entity information be returned?

Value

Either a string in the case of le.op = "remove" or le.op = "stand", or a dataframe in case le.op = c("remove", "stand") or table.return = TRUE

Examples

1
2
3
4
5
companies <- c("basf co ltd", "basf company ltd", "basf ag", "basf se", "basf aktiengesellschaft")
tpfuns::cop_stand_le(companies, le.op = "remove")
tpfuns::cop_stand_le(companies, le.op = "stand")
tpfuns::cop_stand_le(companies)
tpfuns::cop_stand_le(companies,  table.return = TRUE)

M2UCT/RFtex documentation built on May 25, 2019, 4 a.m.