cleanIP: Cleans the name of a site

Description Usage Arguments Value Note See Also Examples

Description

Attempts to coerce a full or partial URL into a form that can be used by calls to system functions. A small number of keyword inputs have special cases. Some 'notable' sites have IP addresses specified and return those instead of a processed URL.

Usage

1
cleanIP(site.name)

Arguments

site.name

Character; a string or vector of strings of the URL(s) or IP address(es) to be cleaned

Value

Character; the processed URL(s)/IP address(es)

Note

Due to the fact that some data firms employ multiple IP addresses for different purposes, the IP addresses returned for 'notable' sites are not guarenteed to correspond to the IP addresses accessed by many popular R functions, such as those in quantmod, though most are.

See Also

Other data cleaning functions: cleanAccount, cleanIndex, cleanSector

Examples

1
cleanIP("http://www.stevens.edu")

alec25/smif.package documentation built on May 22, 2019, 12:36 p.m.