# Dataset$table

### Dataset$<mark style="color:purple;">table</mark>(*table\_reference*) → [Table](https://docs.redivis.com/api/client-libraries/redivis-r/reference/table)

Create a reference to the table within a dataset.

### **Parameters:**

**`table_reference` :&#x20;*****str*** \
The name of the table, unique within the dataset. The name is case-insensitive, and can optionally be escaped following general [name escaping rules](https://docs.redivis.com/api/referencing-resources#escaping-names). E.g., `"Daily observations"` -> `"daily_observations"`. Can optionally include a colon followed by the [table reference id](https://docs.redivis.com/api/referencing-resources#reference-ids), which ensures the lookup will work even if the table gets renamed (e.g., `"daily_observations:6fff"`).&#x20;

### **Returns:**

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

### Examples

```r
dataset <- redivis$organization("demo")$dataset("ghcn_daily_weather_data")

table <- dataset$table('daily_observations:6fff')
table$to_tibble(max_results=100)
# 	id	        date	            element    ...
# 0	CA0023026HN	2003-08-16	    ACMH       ...
# ...
```
