Learn R Programming

netCoin (version 2.1.19)

saveGhml: Save a netCoin object as a .graphml file to be read in Gephi, Pajek, ...

Description

saveGhml produces a .graphml file from a netCoin object.

Usage

saveGhml(net, file="netCoin.graphml")

Value

The function creates a file with vertices and arcs or edges of a netCoin object.

Arguments

net

A netCoin object.

file

The name of the file. If not extension, .gexf is used as default.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Examples

Run this code
if (FALSE) {
# 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, maxL=.5) # graph from an incidence matrix

saveGhml(graph,"graph") # save graph.net file
}

Run the code above in your browser using DataLab