annotateEvents: Will match eigensentences to events and given unique labels...

Description Usage Arguments Value Author(s) Examples

Description

Returns a dataframe for every event with annotated event times, word categories (V, N,... ), sentence descriptors (labels, other variables) etc.

Usage

1
annotateEvents(sentencesIn, words, eventtimes, eventnames)

Arguments

sentencesIn

the list of possible sentences

words

the list of possible words

eventtimes

the index to the temporal volumes at which events occur

eventnames

a name for every event so of equal length to eventtimes

Value

returns a data frame

Author(s)

Avants BB

Examples

1
2
3
4
5
  data(reuters_words,package="RKRNS")
  data(sentences,package="RKRNS")
  eventtimes<-c(10,25,99)
  eventnames<-list(sentences$Sentence[1],sentences$Sentence[55],sentences$Sentence[19])
  eventdf<-annotateEvents( sentences$Sentence, reuters_words$WhichWord, eventtimes, unlist(eventnames) )

stnava/RKRNS documentation built on May 30, 2019, 7:21 p.m.