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. |
|
Sets the variable names 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. |
|
Extracts the day from a date/time variable as a string name. |
|
Extracts the day of the month from a date/time variable as a decimal number (1-31). |
|
Extracts the day of the week from a date/time variable as a decimal number. |
|
Extracts the day of the year from a date/time variable as a decimal number (1-366). |
|
Extracts the hour from a date/time variable as a number (1-12 or 1-24). |
|
Extracts the minute from a date/time variable as a number (0-59). |
|
Extracts the month from a date/time variable as a decimal number(1-12). |
|
Extracts the month from a date/time variable as a string name. |
|
Extracts the quarter from a date/time variable (1-4). |
|
Extracts the seconds from a date/time variable as a number (0-59). |
|
Extracts the week from a date/time variable as a number (0-53). |
|
Extracts the year from a date/time variable as a number. |
|
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#
Removes categories from the variable and the meta data. Resets the keyvalues and labels for the variable. |
|
Removes categories from the meta data of a dataframe that are not present in the current variable. |
|
Returns the unique set of column labels as a dataframe. |
|
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. |
|
Sets a category in a categorical variable to be the base case. |
|
Returns a 1 if a string starts with a specified pattern. |
Matrices#
Matrix creation#
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#
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#
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. |