Skip to main content

propagate_attrs

Function propagate_attrs 

Source
fn propagate_attrs(result: RValue, lv: &RVector, rv: &RVector) -> RValue
Expand description

Copy attributes (dim, dimnames, names, class) from the longer operand to the arithmetic result. R’s rule: attrs come from the first operand if lengths are equal, otherwise from the longer one.