# Notebook$create\_output\_table

### Notebook$<mark style="color:purple;">create\_output\_table</mark>(*data, \*, name=None, append=False, geography\_variables=None*) → [Table](https://docs.redivis.com/api/client-libraries/redivis-r/reference/table)

Create an output table from within a running notebook. Pass various data structures or reference an existing file on disk.

### **Parameters:**

**`data` :&#x20;*****str | data.frame | arrow\.Table | arrow\.Dataset | sf.tibble*** \
The data content to pass to the output table. If a string, assumed to be the path to a parquet file, which must end in ".parquet". Otherwise, the provided data object is converted to parquet and uploaded to the output table.

**`name`:&#x20;*****str, default None***\
The name of the output table. If not specified, will be automatically set based on the name of the notebook.

**`append`:&#x20;*****bool, default FALSE***\
&#x20;If set to TRUE, the data contents will be appended to the output table. Otherwise, the output table will be replaced with the contents (the default behavior).

**`geography_variables`:&#x20;*****list, default*** ***None***\
A list of variables that should be interpreted as the geography type. Will be automatically inferred when passing a sf.tibble or parquet file (that implements the geoparquet specification) via the `data` parameter.

### Returns

[**Table**](https://docs.redivis.com/api/client-libraries/redivis-r/reference/table)

### Examples

```r
df <- get_dataframe_somehow()

notebook <- redivis$current_notebook()

# Create an output table on the current notebook
# Optional parameter, append (default False), determines whether the output appends to
#  or replaces the output table.
notebook$create_output_table(df, append=FALSE) 

# Can also pass a path to a parquet file
notebook$create_output_table("path/to/file.parquet")
```
