Learn R Programming

One4All (version 0.5)

read_rules: Read rules from a file

Description

This function reads rules from a file or a data frame. The file can be in csv or xlsx format. The data should have the column names "name", "description", "dataset", "valid example", "severity", "rule". The function also checks that the rules do not contain sensitive words and that all the rules fields are character type.

Usage

read_rules(file_rules)

Value

A data frame containing the rules.

Arguments

file_rules

The file containing the rules. Can be a CSV or XLSX file, or a data frame.

Examples

Run this code
if (FALSE) {
read_rules("path/to/rules")
}

Run the code above in your browser using DataLab