Learn R Programming

ncodeR (version 0.2.0.1)

RegexCode: 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

Arguments

Value

RegexCode object

Format

An object of class R6ClassGenerator of length 24.

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

Run this code
# NOT RUN {
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"))

# }

Run the code above in your browser using DataLab