datatypes

datatypes

1.2.6 2026-07-08

A package for providing extra data types and related functionality for GNU Octave.

Select Category:

categorical arrays

categorical Array representing categorical data.
iscategorical True if input is a ‘categorical’ array, false otherwise.

calendarDuration arrays

calendarDuration Array representing durations of time using flexible-length calendar date/time units.
caldays Calendar duration in days.
calweeks Calendar duration in weeks.
calmonths Calendar duration in months.
calquarters Calendar duration in quarters.
calyears Calendar duration in years.
iscalendarduration True if input is a ‘calendarDuration’ array, false otherwise.

datetime arrays

datetime Array representing points in time using the Gregorian calendar.
isdatetime True if input is a ‘datetime’ array, false otherwise.
isnat Test for Not-A-Time elements in datetime array.
NaT “Not-a-Time”. Cr

duration arrays

duration Array representing durations of time using fixed-length time units.
days Fixed-time duration in days.
years Fixed-time duration in years.
hours Fixed-time duration in hours.
minutes Fixed-time duration in minutes.
seconds Fixed-time duration in seconds.
milliseconds Fixed-time duration in milliseconds.
isduration True if input is a ‘duration’ array, false otherwise.

string arrays

string Array representing sequences of characters.
convertCharsToStrings Convert character arrays to a string arrays, where applicable.
convertStringsToChars Convert string arrays to a character arrays, where applicable.

table arrays

table Array of tabular data containing multiple columnar variables.
array2table Convert an array to a table.
cell2table Convert a cell array to a table.
csv2table Load a CSV file into a table.
ods2table Read an OpenDocument spreadsheet file into a table.
ods2struct Read every sheet of an OpenDocument spreadsheet into a scalar structure.
readtable Read a file into a table, detecting variable types automatically.
struct2ods Write a scalar structure of tables to a multi-sheet OpenDocument spreadsheet.
struct2xlsx Write a scalar structure of tables to a multi-sheet Excel workbook.
struct2table Convert a structure array to a table.
xlsx2struct Read every sheet of an Excel workbook into a scalar structure.
istable True if input is a ‘table’, false otherwise.

supplementary classes

missing Array of missing values.
vartype Subscript into a table by variable type.
@cell/disp Customized display of cell arrays.
@cell/display Customized display of cell arrays.

supplementary functions

findgroups Find groups defined by one or more grouping variables.
splitapply Split data into groups and apply a function to each group.
keyHash Generate a hash code for an array.
keyMatch Return true if both inputs have the same hash code.
parsePairedArguments Parse optional paired arguments from variable argument list.

compiled functions

__ckeyHash__ Fowler–Noll–Vo hash key for a character vector.
__nkeyHash__ Fowler–Noll–Vo hash key for a numeric vector.
__datetime__ Base function for datetime class.
__csv2table__ Barebone function for loading a CSV file to a cell array.
__table2csv__ Barebone function for saving a cell array to a CSV file.
__ods2table__ Barebone function for reading a flat ODS (.fods) file.
__table2ods__ Barebone function for saving a table to a flat (.fods) or compressed (.ods) OpenDocument spreadsheet file.
__xlsx2table__ Barebone function for reading a sheet of an Office Open XML (.xlsx / .xlsm) spreadsheet.
__table2xlsx__ Barebone function for writing an Office Open XML (.xlsx / .xlsm) spreadsheet.