get_clusters_batch: get_clusters_batch

View source: R/ClusterModeling_clusterassignment.R

get_clusters_batchR 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 make_clustering_templates

input_dir

A directory containing graphs created with process_batch_dir

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)


CSAFE-ISU/handwriter documentation built on March 24, 2024, 6:23 p.m.