Skip to main content

parse_max_distance

Function parse_max_distance 

Source
fn parse_max_distance(named: &[(String, RValue)], pattern_len: usize) -> usize
Expand description

Parse R’s max.distance argument for agrep/agrepl. R accepts either a single numeric (fraction of pattern length if < 1, absolute if >= 1) or a named list. We support the simple numeric case.