Skip to contents

A named character vector mapping common arrow::Schema field types (as strings) to their corresponding base R types. This mapping is used to translate or validate column types when working with Parquet files or Arrow datasets, especially for schema inference and compatibility checks.

Usage

arrow_to_r_datatypes

Format

A named character vector with 8 entries.

Details

Only the safest and most portable Arrow types are supported in the hubverse. Types not present in this mapping should be treated as unsupported.

Arrow typeR typeNotes
boollogical
int32integer
int64integerR supports via Arrow
floatdoublePromoted to double in R
doubledouble
stringcharacter
date32[day]Date
timestamp[ms]POSIXctSafest timestamp format