---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://catboost.ai/docs/en/concepts/r-reference_catboost-save_pool.md
  - href: en/concepts/r-reference_catboost-save_pool.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# catboost.save_pool

```no-highlight
catboost.save_pool(data,
                   label = NULL,
                   weight = NULL,
                   baseline = NULL,
                   pool_path = "data.pool",
                   cd_path = "cd.pool")
```

## Purpose {#purpose}

<!-- source: en/_includes/work_src/reusage-r/save_pool__purpose.md -->
Save the dataset to the CatBoost [format](https://catboost.ai/docs/en/concepts/input-data.md). Files with the following data are created:
- [Dataset in delimiter-separated values format](https://catboost.ai/docs/en/concepts/input-data_values-file.md)
- [Columns description](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md)
<!-- endsource: en/_includes/work_src/reusage-r/save_pool__purpose.md -->


Use the [catboost.load_pool](https://catboost.ai/docs/en/concepts/r-reference_catboost-load_pool.md) function to read the resulting files. These files can also be used in the  [Command-line version](https://catboost.ai/docs/en/concepts/cli-installation.md) and the [Python package](https://catboost.ai/docs/en/concepts/python-installation.md).

## Arguments {#arguments}
###  data

#### Description
A data.frame or matrix with features.

The following column types are supported:
- double
- factor. It is assumed that categorical features are given in this type of columns. A standard CatBoost processing procedure is applied to this type of columns:
    1. The values are converted to strings.
    1. The `ConvertCatFeatureToFloat` function is applied to the resulting string.


**Default value**

 Required argument

### label

#### Description
<!-- source: en/_includes/work_src/reusage/r__reference__label__dataset-not-training__short-desc.md -->
The target variables (in other words, the objects' label values) of the dataset.
<!-- endsource: en/_includes/work_src/reusage/r__reference__label__dataset-not-training__short-desc.md -->



**Default value**

 NULL

###  weight

#### Description The weights of objects.

**Default value**

 NULL

### baseline

#### Description
A vector of formula values for all input objects. The training starts from these values for all input objects instead of starting from zero.


**Default value**

 NULL

### pool_path

#### Description
The path to the output file that contains the [dataset](https://catboost.ai/docs/en/concepts/input-data_values-file.md).

**Default value**

 data.pool

### cd_path

#### Description

The path to the output file that contains the [columns description](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md).

**Default value**

 cd.pool
