convert_relevant: Interpret relevant logic from XLS Form

Description Usage Arguments Details Examples

View source: R/xls_code_translation.R

Description

convert_relevant converts relevant logic from XLS Form into an R language equivalent.

Usage

1

Arguments

string

String to be interpreted, should be of the standard format for relevant logic within XLS Forms.

Details

Takes in a string of relevant logic from XLS Form and converts all portions of it into a parsed expression that can be passed to dplyr::filter for use in filtering data frames.

Examples

1
2
convert_relevant("selected(${employed_by_empire}, 'yes')")
convert_relevant("selected(${employed_by_empire}, 'yes') and count-selected(${livelihoods_coping}) > 3")

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