#include "SQDef.h"
#include "SQErrorCodes.h"
#include "SQDataset.h"
#include "SQCommon.h"
#include "SQStringMatrix.h"
Go to the source code of this file.
◆ SQ_AddGeneratedVariables()
Adds a generated variable to a dataset.
- Parameters
-
[in] | hDataset | The handle to the dataset |
[in] | hVarNames | Matrix of the names for the generated variables and secondary IDs. The names must be unique and must not be in the dataset prior to calling this function. If NULL, then SQM will generate variable names, like v8, v9 if the dataset contained 7 variables before. If v8 exist as a variable name when generating names like above, SQM will append 1 until it is unique, like v81, v9. |
[in] | szExpr | The generate variables expression. See documentation for expression format, UTF-8 encoded. |
- Returns
- Returns SQ_E_OK if success or an error code
◆ SQ_DeleteDatasetObservations()
Deletes observations from a dataset. Note: If there exists models for this dataset, those models will be deleted.
- Parameters
-
[in] | hDataset | The handle to the dataset |
[in] | hDSObsIndices | A vector containing the observation indices in the dataset that will be removed. The vector must have at least one element. |
- Returns
- Returns SQ_E_OK if success or an error code
◆ SQ_DeleteDatasetVariables()
Deletes variables from a dataset. Note: If there exists models with these variables, those models will be deleted.
- Parameters
-
[in] | hDataset | The handle to the dataset |
[in] | hDSVarIndices | A vector containing the variable indices in the dataset that will be removed. The vector must have at least one element. |
- Returns
- Returns SQ_E_OK if success or an error code