Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new function: vw_rename_datasets() #34

Closed
ijlyttle opened this issue Aug 20, 2018 · 0 comments
Closed

new function: vw_rename_datasets() #34

ijlyttle opened this issue Aug 20, 2018 · 0 comments

Comments

@ijlyttle
Copy link
Contributor

As of Altair 2.2, when you concatenate, data for each layer or concatenation are combined into a top-level dataset, reducing duplication. This is a great and wonderful thing.

The name of the resulting dataset seems to be based on the hash of the dataset, and likely for good reason. However, this makes it less than intuitive to work with a "fully cooked" spec because the names are not intuitive.

We could imagine a function:

vw_rename_datasets <- function(spec) {}

That takes a spec, then returns a copy of the spec with the datasets renamed.

The names of the datasets are the names of the top-level dataset object.

They are used as the value of a name string of a data object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant