RegexCode {ncodeR}R Documentation

RegexCode

Description

Creates an object for Regular Expression coding. No need to call this directly, create.code is a nice wrapper around this and any other types of Codes

Usage

RegexCode

Format

An object of class R6ClassGenerator of length 24.

Value

RegexCode object

Fields

name

Name of the Code

definition

Definition of the Code

excerpts

Character vector of text excerpts to code

...

Additional parameters not specific to a RegexCode

expressions

Character vector of regular expressions

Examples

data(RS.data)
rs = RS.data

# Generate a Code
newcode = RegexCode$new(name = "New Code", definition = "Some definition", 
    excerpts = rs$text, expressions = c("number","data"))


[Package ncodeR version 0.2.0.1 Index]