Generates IDs for people cited within an egocentric network


The function generates ID (integer) for flatten the network in a tabular view: instead of have one ID for ego and then an ID for each people of the network, we generate a unique ID for all people (ego and alters)


idalter.gen(metavar, nmetavarbyalter, = NULL)



Rsocialdata object, demographic variables for all individals of the egocentric network


number of variable to use for each alter individual

if ids for alters are given en metavar we can use them, else we assume meta variables are given in the same order than id alters

Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus