View source: R/cluster_assignment.R
| get_clusters_batch | R Documentation | 
get_clusters_batch
get_clusters_batch(
  template,
  input_dir,
  output_dir,
  writer_indices,
  doc_indices,
  num_cores = 1,
  save_master_file = FALSE
)
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  | 
save_master_file | 
 TRUE or FALSE. If TRUE, a master file named 'all_clusters.rds' containing the cluster assignments for all documents in the input directory will be saved to the output directory. If FASLE, a master file will not be saved, but the individual files for each document in the input directory will still be saved to the output directory.  | 
A list of cluster assignments
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.