[R] Correlation based on the attributes of vertices

2011-10-04 Thread Ali.Abbas
Dear all, I have a directed graph - an Igraph to be more precise - which has some vertices attributes (like dorm, year etc). Edges and the graph itself do not have any attributes. Based on the attributes of the vertices, I'd like to calculate correlation among the edges (e.g. how likely people of t

Re: [R] Odp: Mapping strings to integers

2011-08-23 Thread Ali.Abbas
Thank you very much. I have managed to do the mappings. And sorry for not mentioning the data type. It was a data frame. -- View this message in context: http://r.789695.n4.nabble.com/Mapping-strings-to-integers-tp3762828p3763317.html Sent from the R help mailing list archive at Nabble.com.

[R] Mapping strings to integers

2011-08-23 Thread Ali.Abbas
Dear All, I am quite a newbie to R. Trying to learn it these days. Sorry for asking such a basic question, but could you kindly tell me how to map unique string values to integers in a data frame? I have a graph which has, most of its, vertices' attributes in a string format. I would like to replac