Description Usage Arguments Value Author(s) See Also Examples
View source: R/wordgraph_package.R
Search at wordreporttolookat$name and find the index of the word with name awordtolookfor The index is the code of the word in the column.
Equivalent to which(grepl(awordtolookfor, allcentralitiesandgraphs$wordreport$name))
1 2 3 4 5 | find.word.code.in.wordreport(
awordtolookfor,
wordreporttolookat,
verbose = FALSE
)
|
awordtolookfor |
The word to look for |
wordreporttolookat |
The wordreport list to look for the centrality of the word (put the wordreport part of allcentralitiesandgraphs object) |
verbose |
Set to TRUE if quiet use is not desired. Default is set to FALSE (do not show warning messages) |
An integer with the index of the word awordtolookfor
Epaminondas Diamantopoulos
Equivalent to which(grepl(awordtolookfor, allcentralitiesandgraphs$wordreport$name))
1 2 3 4 5 6 7 8 | # It is a time consuming function...
allcentralitiesandgraphs = get.all.graphs(c("diet1stword", "diet2ndword", "diet3rdword"),
freeassociationdata_part)
awordtolookfor = "Diet"
get.word.centrality(awordtolookfor, "centrality_authority", allcentralitiesandgraphs$wordreport)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.