fix.ticker.name: Fix name of ticker

Description Usage Arguments Value Examples

View source: R/Utils.R

Description

Removes bad symbols from names of tickers. This is useful for naming files with cache system.

Usage

1
fix.ticker.name(ticker.in)

Arguments

ticker.in

A bad ticker name

Value

A good ticker name

Examples

1
2
3
bad.ticker <- '^GSPC'
good.ticker <- fix.ticker.name(bad.ticker)
good.ticker

Example output

Loading required package: rvest
Loading required package: xml2
Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union


[1] "GSPC"

BatchGetSymbols documentation built on Jan. 13, 2021, 5:17 p.m.