get_clusters_batch {handwriter} | R Documentation |
get_clusters_batch
Description
get_clusters_batch
Usage
get_clusters_batch(
template,
input_dir,
output_dir,
writer_indices,
doc_indices,
num_cores = 1
)
Arguments
template |
A cluster template created with |
input_dir |
A directory containing graphs created with |
output_dir |
Output directory for cluster assignments |
writer_indices |
Vector of start and end indices for the writer id in the graph file names |
doc_indices |
Vector of start and end indices for the document id in the graph file names |
num_cores |
Integer number of cores to use for parallel processing |
Value
A list of cluster assignments
Examples
## Not run:
template <- readRDS('path/to/template.rds')
get_clusters_batch(template=template, input_dir='path/to/dir', output_dir='path/to/dir',
writer_indices=c(2,5), doc_indices=c(7,18), num_cores=1)
get_clusters_batch(template=template, input_dir='path/to/dir', output_dir='path/to/dir',
writer_indices=c(1,4), doc_indices=c(5,10), num_cores=5)
## End(Not run)
[Package handwriter version 3.1.1 Index]