Learn R Programming

interfacer (version 0.3.3)

type.proportion: Coerce to a number between 0 and 1

Description

Coerce to a number between 0 and 1

Usage

type.proportion(x)

Value

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

Arguments

x

object to be coerced or tested.