Learn R Programming

stoRy (version 0.1.1)

storysets: Storysets objects

Description

The stoRy package uses the storysets object to store lists of story IDs.

Usage

storysets

Arguments

storysets

The object is created by passing an .smt format storyset file name. See examples.

Format

An object of class R6ClassGenerator of length 24.

Fields

Each storysets object has the following five fields

file

A string specifying the name of an .smt format storysets file. See examples.

names

A vector of storyset names.

comments

A vector of comments describing the storysets.

no_of_storysets

The number of storysets in the .smt file.

storysets_story_ids

A list of vectors containing the storyset story IDs.

Examples

Run this code
# NOT RUN {
#######################################################################
# List all storysets files available in the \pkg{stoRy} package       #
#######################################################################
list.files(system.file("storysets", package = "stoRy"))

#######################################################################
# Load the Star Trek aliens storysets smt file and storysets object   #
#######################################################################
file <- system.file("storysets", "aliens.smt", package = "stoRy")
mystorysets <- storysets$new(file)
print(mystorysets)
# }

Run the code above in your browser using DataLab