dot-motion_num: Coerce one motion field to numeric with a default

.motion_numR Documentation

Coerce one motion field to numeric with a default

Description

JSON-deserialized specs may carry integers or single-element lists where doubles were written; unify here.

Usage

.motion_num(v, default)

Arguments

v

Field value.

default

Value when v is NULL.

Value

A numeric scalar.


compost documentation built on Aug. 4, 2026, 5:11 p.m.