You can save a version of a dataset using saveVersion(). Savepoints are also created automatically by certain Crunch functions that make major changes to the dataset. You can get the list of saved versions with the versions() function.

restoreVersion(dataset, version)

Arguments

dataset

a CrunchDataset

version

either the name ("description") of the version to restore to or the integer index of the version, as given by versions(dataset)

Value

dataset, rolled back to version.