Learn R Programming

genscore (version 1.0.2.2)

beautify_rule: Replaces consecutive "&"s and "|"s in a string to a single & and |.

Description

Replaces consecutive "&"s and "|"s in a string to a single "&" and "|".

Usage

beautify_rule(rule)

Value

A string with extra "&"s and "|"s removed.

Arguments

rule

A string containing positive integers, parentheses, and "&" and "|" only.

Details

Applied to domain$rule if domain$type == "polynomial".

Examples

Run this code
beautify_rule("(1 & 2 && 3 &&& 4) | 5 || 6 ||| 7")

Run the code above in your browser using DataLab