vw_rename_datasets {vegawidget}R 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


[Package vegawidget version 0.5.0 Index]