slit: Split a string (e.g. of a url) to extract parts between a...

Description Usage Arguments Value Examples

Description

Split a string (e.g. of a url) to extract parts between a given delimeter

Usage

1
slit(link, split = "/", pos)

Arguments

link

a string with possible characters to use as delimeters (usually a web url)

split

the delimter, default is "/" for web urls

pos

the position of partial string to extract

Value

Returns a partial character string from the full input

Examples

1
2
3
4
5
6
7
## Not run: 
x <- "http://www.homedepot.com/b/Electrical-Dimmers-Switches-Outlets/N-5yc1vZc34h"
links <- hd_get_product_links(x)
id <- slit(links[1], 5)
sku <- slit(links[1], 6)

## End(Not run)

burtonlueth/webPrices documentation built on May 13, 2019, 8:47 a.m.