Closed trinker closed 12 years ago
make it take a text var and a list of factors
takes a matrix instead (wfm or terco.d/termco.c). Complete but still experimenting with igraph to see its potential.
See if I can stipulat the distances asin:
The distance matrix has in position (i,j) the distance between vertices vi and vj . The
distance is the length of a shortest path connecting the vertices. Unless lengths of
edges are explicitly provided, the length of a path is the number of edges in it. The
distance matrix resembles a high power of the adjacency matrix, but instead of telling
only whether or not two vertices are connected (i.e., the connection matrix, which
contains boolean values), it gives the exact distance between them.
from wikipedia
If so has potential to use correlation values as the distances.
Look at adding the adjacency matrix and an example with igraph showing social network (common words)
See these links: R data minging link TS question SO qusetion