Learn R Programming

LibOPF (version 2.5.0)

opf_write_distances: Writes into a file the precalculated distances computed by opf_distances function

Description

Writes into a file the precalculated distances computed by opf_distances function

Usage

opf_write_distances(distances, file)

Arguments

distances

The matrix produced by the opf distances function

file

The file name where you want to save the distances

Value

`NULL`

Examples

Run this code
# NOT RUN {
dat <- opf_read_subGraph(system.file("extdata/boat.dat",package = "LibOPF"))
dist <- opf_distance(dat,3,0)
opf_write_distances(dist, file.path(tempdir(), "distances.dat"))

# }

Run the code above in your browser using DataLab