powered by
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
RegexCode
RegexCode object
An object of class R6ClassGenerator of length 24.
R6ClassGenerator
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
# 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