Creating datasets in Strategy with R requires the create_dataset () function from the mstrio R package. This function has 4 required parameters and 2 optional parameters.
Required:
- connection - this is a connection object that is passed in to all functions when using mstrio for R
- data_frame - this is a dataframe object from which an in-memory
- dataset_name - this is a string object that will create the name of the dataset
- table_name - this is a string object that will create the name of the table
Optional:
- to_metric - a vector of column names from the dataframe that will be formatted as metrics in the created dataset. By default, numeric types are formatted as metrics while character and date types are formatted as attributes.
- to_attribute - the logical opposite of to_metric
KB442338