cleanseBatches {crunch}R Documentation

Remove batches from a dataset

Description

Sometimes append operations do not succeed, whether due to conflicts between the two datasets or other server-side issues. Failed appends can leave behind "error" status batch records, which can cause confusion. This function lets you delete batches that don't match the status or statuses you want to keep.

Usage

cleanseBatches(dataset, keep = c("imported", "appended"))

Arguments

dataset

CrunchDataset

keep

character the statuses that you want to keep. By default, batches that don't have either "imported" or "appended" status will be deleted.

Value

dataset with the specified batches removed.


[Package crunch version 1.30.1 Index]