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

Description Usage Arguments Value Author(s) Examples

View source: R/netcoin.R

Description

saveGhml produces a .graphml file from a netCoin object.

Usage

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

Arguments

net

A netCoin object.

file

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

Value

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

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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, maxL=.5) # graph from an incidence matrix

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

## End(Not run)

netCoin documentation built on Oct. 29, 2021, 1:06 a.m.