Skip to contents

Reads and validates a policy written by cs_write_signal_policy(). The format is inferred from the .json or .csv extension unless format is supplied explicitly.

Usage

cs_read_signal_policy(path, format = NULL)

Arguments

path

Source file path.

format

Either "json" or "csv"; by default inferred from path.

Value

A validated data frame with class cs_signal_policy.

Examples

path <- tempfile(fileext = ".json")
cs_write_signal_policy(cs_signal_policy("CD3e"), path)
cs_read_signal_policy(path)
#>   marker compartment statistic fallback_compartment min_value
#> 1   CD3e        cell      mean                 <NA>         0