Description Usage Arguments Details Value Source See Also Examples
This function uses input parsing and replacement to coerce the character vector input
into the index that the user was referencing. Primary useage is found in other
smif.package
functions which require uniform index identifiers.
1 | cleanIndex(index, stops = TRUE)
|
index |
Character; string that must be coerced into an index identifier |
stops |
Logical; whether the function should stop and throw an error message if the ticker cannot be coerced |
cleanIndex
will attempt to remove all non alphanumeric characters from index
and
will coerce all alphabetic characters to lowercase. It then compares them to possible formatted spellings
of various indexes from indexIdentifier
until a match is found. If no match is found, returns an error.
Character; string representation of the given index
indexIdentifier
indexIdentifier
: internal dataset used to identify trivial cases
Other data cleaning functions: cleanAccount
,
cleanIP
, cleanSector
1 | cleanIndex("S&P 500")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.