parseCssString: Split a CSS attribute value into a vector/array.

View source: R/styleParsing.R

parseCssStringR Documentation

Split a CSS attribute value into a vector/array.

Description

parseCssString is a utility function that splits a string into a vector/array. The function pays attention to text qualifiers (single and double quotes) so won't split if the delimiter occurs inside a value.

Usage

parseCssString(text, separator = ",", removeEmptyString = TRUE)

Arguments

text

The text to split.

separator

The field separator, default comma.

removeEmptyString

TRUE to not return empty string / whitespace values.

Value

An R vector containing the values from text split up.


pivottabler documentation built on Oct. 1, 2023, 5:07 p.m.