Data types¶
Dataframes¶
General¶
Converts a matrix or string array to a dataframe, and optionally sets the column names. |
|
Converts a dataframe to a matrix. |
|
Vertically conacatenates (or stacks) two dataframes. |
|
Sets the variable names of the columns of a dataframe. |
|
Sets the types (numeric, categorical, date or string) of a dataframe. |
|
Returns the names of the columns (or variables) in a GAUSS dataframe. |
|
Returns the types for the columns (or variables) in a GAUSS dataframe. |
|
Checks to see if a symbol is a dataframe. |
|
Sets the variable names and types for the columns of a dataframe. |
Date variables¶
Converts vectors in Posix time or string dates to a GAUSS date variable and optionally sets the date display format. |
|
Gets BSD strftime format specifiers for specified columns of a dataframe. |
|
Specifies how GAUSS should display dates using the BSD strftime format specifiers. Note that this will also convert the type of the columns specified by column to Date. |
String and categorical variables¶
Returns the unique set of column labels and corresponding key values for a categorical variable. |
|
Change categorical variable labels. |
|
Change the order of categorical variable labels. |
|
Sets a category in a categorical variable to be the base case. |
|
Set categorical variable labels. |
Matrices¶
Matrix creation¶
Creates identity matrix. |
|
Allocates a matrix with unspecified contents. |
|
Allocates a matrix with specified fill value. |
|
Creates a matrix of ones. |
|
Creates a matrix of zeros. |
Size and range¶
Returns number of columns in a matrix. |
|
Returns number of columns in an open data set. |
|
Returns largest element in each column of a matrix. |
|
Returns smallest element in each column of a matrix. |
|
Returns number of rows in a matrix. |
|
Returns number of rows in an open data set. |
Other¶
Extracts the diagonal of a matrix. |
|
Puts a column vector into the diagonal of a matrix. |
|
Returns the lower triangle of a matrix with the main diagonal or a diagonal of ones. |
|
Returns the upper triangle of a matrix with the main diagonal or a diagonal of ones. |
Complex numbers¶
Creates a complex matrix from two real matrices. |
|
Tests whether the imaginary part of a complex matrix is negligible. |
|
Returns the imaginary part of a complex matrix. |
|
Tests whether a matrix is complex. |
|
Returns the real part of a complex matrix. |
N-Dimensional arrays¶
Array creation¶
Concatenates conformable matrices and arrays in a user-specified dimension. |
|
Creates an N-dimensional array in which the planes described by the two trailing dimensions of the array are equal to the identity. |
|
Reshapes a scalar, matrix, or array into an array of user-specified size. |
|
Creates an N-dimensional array with unspecified contents. |
|
Creates an N-dimensional array with a specified fill value. |
|
Converts a matrix to a type array. |
|
Remove any singleton dimensions from a multi-dimensional array. |
Size and range¶
Moves across one dimension of an N-dimensional array and finds the largest element. |
|
Moves across one dimension of an N-dimensional array and finds the smallest element. |
|
Gets the number of dimensions in an array. |
|
Gets the vector of orders corresponding to an array. |
Selection and indexing¶
Converts a scalar vector index to a vector of indices for an N-dimensional array. |
|
Gets a contiguous subarray from an N-dimensional array. |
|
Gets a contiguous matrix from an N-dimensional array. |
|
Gets a contiguous matrix from a 4-dimensional array. |
|
Gets a scalar from a 3-dimensional array. |
|
Gets a scalar from a 4-dimensional array. |
|
Increments an index vector to the next logical index and jumps to the specified label if the index did not wrap to the beginning. |
|
Returns the index of the next element or subarray in an array. |
|
Returns the index of the previous element or subarray in an array. |
|
Converts a vector of indices for an N-dimensional array to a scalar vector index. |
|
Walks the index of an array forward or backward through a specified dimension. |
Transform¶
Concatenates conformable matrices and arrays in a user-specified dimension. |
|
Reshapes a scalar, matrix, or array into an array of user-specified size. |
|
Transposes an N-dimensional array. |
|
Changes an array to type matrix. |
|
Puts a contiguous subarray into an N-dimensional array and returns the resulting array. |
Other¶
Computes the mean across one dimension of an N-dimensional array. |
|
Computes the sum across one dimension of an N-dimensional array. |
|
Computes the standard deviation of the elements across one dimension of an N-dimensional array. |