# dataLib

Create, modify, translate, analyze and otherwise manipulate data.

### Functions

- addField - Adds to an existing record a field with specified name and value.
- baseNtoDec - Base conversion from any base to decimal.
- buildField - Creates a field with specified name and value.
- bytes - Converts data to the bytes as written on disk.
- createConstant - Creates a non-editable importable data object.
- decToBaseN - Base conversion from decimal to any base.
- enumToList - Converts an enum into a text array.
- hexToInt - Interprets input as hex value and outputs it as an integer
- listToEnum - Converts a text array into an enum.
- polarFit - Determines the unique circle defined by given three points.
- polarRegress - Determines the circle that best fits a set of points.
- polarResample - Resamples polar data to ensure full 0-360 coverage.
- setVar - Sets (or creates) a variable with given name and value
- timeStretch - Stretches a series of data points by replicating them.
- toggleRadix - Switches decimal radix between point and comma
- toBinStrN - Formats a number as a binary string of arbitrary length.
- toCoord - Creates Coordinates from input data.
- toEngr - Formats a number in standard engineering format.
- toInt16 - Interprets input as hex value and outputs it as a 16-bit signed integer
- toInt32 - Interprets input as hex value and outputs it as a 32-bit signed integer
- toUInt8- Interprets input as hex value and outputs it as an 8-bit unsigned integer

### Internal Content

These are used within the library but can often be useful directly accessed from without.

- private functions
  - version - returns revision date of this library
- variables
  none

### Standalone Objects

- toBinStr8 - Formats a number as a binary string of length 8.
- toBinStr16 - Formats a number as a binary string of length 16.
- toBinStr32 - Formats a number as a binary string of length 32.
- toBinStr64 - Formats a number as a binary string of length 64.

### Standalone Functions

- comma2point - Replaces commas with points.
- dimSizes - Returns the size(s) of the dimensions for an array.
- numDims - Returns the dimensionality of a value.
- point2comma - Replaces points with commas.
- Xcoord - Returns the X value of a coordinate
- Ycoord - Returns the Y value of a coordinate
- Zcoord - Returns the Z value of a coordinate

### Notes

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 31 July 2021 08:00.