Skip to contents

Coerce to a number between 0 and 1

Usage

type.proportion(x)

Arguments

x

object to be coerced or tested.

Value

the input as a number from 0 to 1, error if this would involve data loss.