whichcluster: To fetch the cluster for words

Description Usage Arguments Value Author(s) See Also Examples

View source: R/whichcluster.R

Description

whichcluster is used to get the cluster in which a given word (term) occurs.

Usage

1
whichcluster(clusterobject, y)

Arguments

clusterobject

an R object containing the clusters of words output by wordscluster function.

y

a character string of query terms.

Value

a list containing the number of cluster under which given term occurs.

Author(s)

S.Ramachandran

See Also

wordscluster

Examples

1
2
3
4
## Not run: test<-whichcluster(x, "diabetes")
## here x is an R object output form wordscluster function.
## and "diabetes" is the term for which cluster number is to be searched. 
## End(Not run)

pubmed.mineR documentation built on Nov. 26, 2021, 5:11 p.m.