read_rules {One4All} | R Documentation |
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)
Arguments
file_rules |
The file containing the rules. Can be a CSV or XLSX file, or a data frame. |
Value
A data frame containing the rules.
Examples
## Not run:
read_rules("path/to/rules")
## End(Not run)
[Package One4All version 0.5 Index]