Force numeric to natural number

natural(x, x_arg = "x")

Arguments

x

A numeric

x_arg

Argument name for x. Used in error message to inform user about location of incompatible type

Value

integer