createDistanceTable: Create a Distance Table

Description Usage Arguments Examples

View source: R/createDistanceTable.R

Description

This function creates a distance table by combining several functions

Usage

1
2
3
createDistanceTable(path_to_corpus, freq_dist, n_gram_size = 1,
  culling_level = 20, cut_off = 500, zscores_transformation = NULL,
  distance_measure = "burrows-delta")

Arguments

path_to_corpus

path to the corpus directory

freq_dist

frequency distribution matrix

n_gram_size

size of ngrams - possible values: 1 & 2; default is 1

culling_level

gives the opportunity to exclude sparse words: a culling level of 20 means that only words which occur in at least 20 texts in the corpus are considered in the analysis, default = 20

cut_off

number of features which will be considered for the analysis, default = 500

zscores_transformation

declares whether the zscores should be normalised or ternarised, default = NULL

distance_measures

determines the distance measure which is used for the calculation of the distance table, default = "burrows-delta"

Examples

1

jbrottrager/stylcoR documentation built on Jan. 29, 2020, 3:34 p.m.