Add fragments to a MarchRDataset or a MarchRProject
add_fragments.RdAdd fragments to a MarchRDataset or a MarchRProject
Usage
# S3 method for class 'MarchRDataset'
add_fragments(proj, frags, frags_name, ...)
# S3 method for class 'MarchRProject'
add_fragments(
proj,
frags,
frags_name,
dataset_name = character(0),
prefix_cells = TRUE,
...
)Arguments
- proj
(MarchRDataset; MarchRProject) Object that frags will be added to.
- frags
(IterableFragments) Pre-read fragments object that will be added to the object.
- frags_name
(character) What
fragswill be named inproj.- dataset_name
(character) Which dataset in a MarchRProject that the fragments will be added to.
- prefix_cells
(logical) If
TRUE(default), prefixdataset_name#to cell names to ensure uniqueness across datasets.
Details
** Fragment dataset placement **
add_fragments() attempts to route to the dataset with the same name as dataset_name. In the case
that this dataset doesn't exist, this function will add in an empty dataset with name dataset_name for the frags
to be added to. However, if dataset_name is character(0), a new dataset will be created with a default name instead.