Skip to main content

read_factor_codes

Function read_factor_codes 

Source
fn read_factor_codes<U>(
    sexp: SEXP,
    elt: impl Fn(i32) -> Result<U, String>,
) -> Result<Vec<U>, SexpError>
Expand description

Read every code of a factor through elt, batching every failing element (its reason and 1-based position) into one error instead of stopping at the first.