RegexCode: RegexCode

Description Usage Format Value Fields Examples

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

1

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

1
2
3
4
5
6
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"))

ncodeR documentation built on Nov. 20, 2019, 1:07 a.m.