Create a code

create.code(
  name = "NewCode",
  definition = NULL,
  excerpts = NULL,
  type = "Regex",
  ...
)

Arguments

name

Name of the code

definition

Definition of the Code

excerpts

Character vectore of excerpts to use for Coding

type

Character string representing the type of code (Default: "Regex")

...

Additional parameters

Value

Code object

Examples

data(RS.data) rs = RS.data # Generate a Code newcode = create.code(name = "Data", expressions = c("number","data"), excerpts = rs$text)