R/ProcessPajekFile.R

Defines functions processPajekFile

##
## File:   ProcessPajekFile.R
## Author: Michael J. North
## Date:   November 25, 2015
##

##
## Define the Pajek file processor.
##
processPajekFile <- function(path = ".", ...) {

  # Check the file existance and extensions.
  if (!SchemaOnRead::checkExtensions(path, c("net", "paj"))) return(NULL)

  ## Attempt to read the file.
  network::read.paj(path)

}

Try the SchemaOnRead package in your browser

Any scripts or data that you put into this service are public.

SchemaOnRead documentation built on May 2, 2019, 4 p.m.