sf2nms: Translate S-form Regular Expressions

Description Usage Arguments Value Author(s) Examples

Description

Translates S-forms into verbose names by regex substitution using the event.key in an eventlist.

Usage

1
sf2nms(event.key, sform)

Arguments

event.key

A two column matrix, possibly passed from evls$event.key

sform

An S-form regular expression using the evls$event.key[,1] uids.

Value

A list containing:

character

A “translation” by substitution of the sform in unique id form to its event type representation

Author(s)

Christopher Steven Marcum

Examples

1
2
3
4
5
6
7
rawevents<-sample(rep(c("ran","eat","stay","eat","ran","play"),100))
actors<-rep(c("Jim","Bill","Pete"),10)
eventlist<-cbind(rawevents,actors)
evls<-gen.evl(eventlist)

sform<-"ab"
sf2nms(evls$event.key,sform)

Example output

Loading required package: abind
Loading required package: relevent
Loading required package: trust
Loading required package: sna
Loading required package: statnet.common

Attaching package: 'statnet.common'

The following object is masked from 'package:base':

    order

Loading required package: network
network: Classes for Relational Data
Version 1.15 created on 2019-04-01.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

sna: Tools for Social Network Analysis
Version 2.4 created on 2016-07-23.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
 For citation information, type citation("sna").
 Type help(package="sna") to get started.

Loading required package: coda
relevent: Relational Event Models
Version 1.0-4 created on March 9, 2015.
copyright (c) 2007, Carter T. Butts, University of California-
Irvine
 For citation information, type citation("relevent").
 Type help(package="relevent") to get started.

informR: Sequence Statistics for Relational Event Models
Version 1.0-5 created on 2015-03-09.
copyright (c) 2010, Christopher Steven Marcum, University of California-
Irvine
 For citation information, type citation("informR").
 Type help(package="informR") to get started.

[1] "raneat"

informR documentation built on May 1, 2019, 9:22 p.m.