savePajek | R Documentation |
savePajek
produces a .net (.paj) file from a netCoin object.
savePajek(net, file="file.net", arcs=NULL, edges=NULL,
partitions=NULL, vectors=NULL)
net |
a netCoin object. |
file |
The name of the file without extension. It will be .net or .paj acoording to data. The default is file.net or file.paj |
arcs |
Names of netCoin$links to be included and considered as arcs in the Pajek file.. |
edges |
Names of netCoin$links to be included and considered as edges in the Pajek file.. |
partitions |
Names of netCoin$nodes to be included and considered as partitions in the Pajek file. |
vectors |
Names of netCoin$nodes to be included and considered as vectors in the Pajek file. |
The function creates a file with vertices and arcs or edges of a netCoin objetct. Vectors and partitions can be also included. .
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## Not run:
# A character column (with separator)
frame <- data.frame(A = c("Man; Women", "Women; Women",
"Man; Man", "Undet.; Women; Man"))
data <- dichotomize(frame, "A", add=FALSE, sep = "; ")
graph <- allNet(data) # graph from an incidence matrix
savePajek(graph,"graph",edges="Haberman") # save graph.net file
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.