Learn R Programming

nfer (version 1.1.3)

load: Load an nfer specification from a file.

Description

This function loads an existing nfer specification, stored in a file, into R in a format that can be used by the nfer::apply function. See http://nfer.io/ for information on how to write nfer specifications.

Usage

load(specfile, loglevel = 0)

Value

A handle to the nfer specification, loaded into R.

Arguments

specfile

The name of file containing the nfer specification to load.

loglevel

(Optional) The logging level to set (0-4), where 0 is only warnings and errors and 3 is debug. Default is 0.

Details

Nfer specifications consist of rules that describe a relationship between pairs of intervals. These relationships describe new intervals that can then be used to describe more intervals. The result is a hierarchy of intervals. Although the algorithm takes intervals as its input, event traces are actually the target, so events are converted to intervals with zero duration.

Examples

Run this code
test <- nfer::load(system.file("extdata", "ops.nfer", package = "nfer"))
ssps <- nfer::load(system.file("extdata", "ssps.nfer", package = "nfer"), loglevel=1)

Run the code above in your browser using DataLab