extract_price: Extract prices from 'xml_node' elements.

Description Usage Arguments See Also

View source: R/extractors.R

Description

Wrapper around extract_text. Extracts digits from a string, convert them into a single integer and divide it by 100, considering that prices won't have more than 2 decimal digits.

Usage

1

Arguments

field

a xml_node or xml_nodeset element

pattern

a valid RegEx pattern

See Also

Other extractors: extract_numeric(), extract_text()


leonardodiegues/chewie documentation built on Dec. 21, 2021, 10:41 a.m.