type.default: Set a default value for a column

View source: R/type-coerce.R

type.defaultR Documentation

Set a default value for a column

Description

Any NA values will be replaced by this value. N.b. default values must be provided before any other rules if the validation is not to fail.

Usage

type.default(value)

Arguments

value

a length one item of the correct type.

Value

a validation function that switches NAs for default values


interfacer documentation built on April 4, 2025, 6:13 a.m.