Description Usage Arguments Value Author(s) References See Also Examples
Compute Coltheart's N measure (the number of neighbors at distance 1).
1 | coltheart.N(sources, targets, distance = 1, method = "hamming", parallel = FALSE)
|
sources |
a list of words for which Coltheart's N should be computed. Must be of type |
targets |
a list of words containing possible neighbors. Must be of type |
parallel |
with parallel=TRUE, |
distance |
specifies the distance on which N should be based. This should be left to 1 to compute the original measure. |
method |
with method="hamming", compute N based on the |
An integer vector with names corresponding to sources.
Emmanuel Keuleers
Coltheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and performance VI, 535–555.
hamming.distance
,levenshtein.distance
1 2 3 4 | data(spanish.words)
sample.words<-sample(spanish.words,20)
coltheart.N(sample.words,spanish.words)
coltheart.N(sample.words,spanish.words, method='levenshtein')
|
Loading required package: stringdist
sh: 1: wc: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Could not detect number of cores, defaulting to 1.
Loading required package: lattice
Loading required package: latticeExtra
Loading required package: RColorBrewer
galindo pensionista apost<U+00F3>lico carbonero
0 0 1 1
versta can<U+00F3>nico impresora protocolario
0 2 0 1
emocional acierto single guardapelo
1 1 0 0
tard<U+00ED>amente mazorca arrobado sostenida
0 1 3 1
moralina majada fant<U+00E1>stica anclaje
0 7 1 0
galindo pensionista apost<U+00F3>lico carbonero
0 0 1 1
versta can<U+00F3>nico impresora protocolario
0 2 1 1
emocional acierto single guardapelo
1 2 1 0
tard<U+00ED>amente mazorca arrobado sostenida
0 1 3 1
moralina majada fant<U+00E1>stica anclaje
0 8 1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.