vw_rename_datasets: Rename datasets in a vegaspec

View source: R/rename-datasets.R

vw_rename_datasetsR Documentation

Rename datasets in a vegaspec

Description

If a vegaspec has named datasets, it may be useful to rename them. This function will return a vegaspec with datasets named data_001, data_002, and so on. It will go through the spec and replace the references to the names. A future version of this function may give you the more control over the names used.

Usage

vw_rename_datasets(spec)

Arguments

spec

An object to be coerced to vegaspec, a Vega/Vega-Lite specification

Value

S3 object of class vegaspec


vegawidget documentation built on Sept. 3, 2023, 9:07 a.m.