Skip to contents

Retrieve the expected data type of a given column for a specified table from data_specification.

Usage

find_type(what, column)

Arguments

what

Character string, the name of the table or element in data_specification.

column

Character string, the name of the column whose type is queried.

Value

Character string indicating the expected R data type (e.g., "character", "integer", "double", "factor"), or NULL if not found.

Details

Looks up the specification for column within entry what of data_specification and extracts its "type" field (e.g., "character", "integer", "double", or "factor").

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org