Data types
The following data types are supported:
|?|b1>f2<f2>f4<f4>f8<f8|i1<i2>i2>i4<i4>i8<i8|O|u1>u2<u2<u4>u4<u8>u8structured data types (record arrays). Each element of the array is a combination of multiple fields, which can be of different data types.
Caveats
i8,u4andu8data types are currently limited to the maximum value ofint32. Larger values are set toNA_integer_. Future plans are laid out in https://github.com/Bisaloo/grumpy/issues/13.- structured data type support only one level of nesting and no array-cells for now.
f2(half-precision floating point) is read asf4(single-precision floating point). No effort is made to evaluate whether the values in the originalf2array can be represented inf4without loss of precision.
The following data types are not yet supported, because we are unsure of their use cases. If you need support for any of these, please open an issue.
-
b*: signed byte -
B*: unsigned byte -
c64: complex-floating point -
c128: double-precision complex floating point -
m8: timedelta -
M8: datetime
Dimensions
Any number of dimensions is supported, including zero-dimensional arrays (scalar values) and one-dimensional arrays (vectors). The shape of the original NumPy array is preserved in the output R object, and can be accessed with the dim() function.