convert_count_selected: Interpret count-selected function from XLS Form

Description Usage Arguments Value Examples

View source: R/xls_code_translation.R

Description

'convert_count_selected' converts count-selected(${var}) into an equivalent R statement.

Usage

1

Arguments

string

String to be interpreted, should be of the format "count-selected(${var})"

Value

Returns a string value of the format ‘str_count(var, ’ ')', which can be parsed for use in filtering datasets. Works together with other internal functions to fully intrepet relevant logic strings from XLS Form coding in 'convert_relevant()' and 'convert_calculate()'.

Examples

1
convert_count_selected("count-selected(${livelihoods})")

caldwellst/kobold documentation built on April 28, 2020, 12:48 a.m.