Functions
SQMDataset.h File Reference
#include "SQDef.h"
#include "SQErrorCodes.h"
#include "SQDataset.h"
#include "SQCommon.h"
#include "SQStringMatrix.h"

Go to the source code of this file.

Functions

SQ_ErrorCode SQ_DeleteDatasetObservations (SQ_Dataset hDataset, SQ_IntVector hDSObsIndices)
 
SQ_ErrorCode SQ_DeleteDatasetVariables (SQ_Dataset hDataset, SQ_IntVector hDSVarIndices)
 
SQ_ErrorCode SQ_AddGeneratedVariables (SQ_Dataset hDataset, SQ_StringMatrix *hVarNames, const char *szExpr)
 

Function Documentation

◆ SQ_AddGeneratedVariables()

SQ_ErrorCode SQ_AddGeneratedVariables ( SQ_Dataset  hDataset,
SQ_StringMatrix hVarNames,
const char *  szExpr 
)

Adds a generated variable to a dataset.

Parameters
[in]hDatasetThe handle to the dataset
[in]hVarNamesMatrix 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]szExprThe generate variables expression. See documentation for expression format, UTF-8 encoded.
Returns
Returns SQ_E_OK if success or an error code

◆ SQ_DeleteDatasetObservations()

SQ_ErrorCode SQ_DeleteDatasetObservations ( SQ_Dataset  hDataset,
SQ_IntVector  hDSObsIndices 
)

Deletes observations from a dataset. Note: If there exists models for this dataset, those models will be deleted.

Parameters
[in]hDatasetThe handle to the dataset
[in]hDSObsIndicesA 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()

SQ_ErrorCode SQ_DeleteDatasetVariables ( SQ_Dataset  hDataset,
SQ_IntVector  hDSVarIndices 
)

Deletes variables from a dataset. Note: If there exists models with these variables, those models will be deleted.

Parameters
[in]hDatasetThe handle to the dataset
[in]hDSVarIndicesA 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

Copyright (C) Sartorius Stedim Data Analytics AB - Generated by Doxygen