This function allows the user to create dyadic data sets which can be directed or undirected.
makeDyadic(x, directed =FALSE, show.progress =5)
Arguments
x: The data matrix whereas the first variable is the country code and the second column has to be the time variable.
directed: Logical. If directed=TRUE the dyadic data set will be directed and have variables with amended names (creating sen_varname for sender and rec_varname for receiver).
show.progress: Logical. The process may take some time depending on the size of the supplied data matrix. This option allows users to receive feedback of how far along the process is at periodical steps. Default is set to 5.
Details
This function was first written for Simon Collrad-Wexler and then later amended for Fabio Wasserfallen.