View source: R/attribute-element.R
create_nominal | R Documentation |
Create an Attribute in Nominal Measurement Scale
create_nominal(
domain = c("text", "enumerated"),
definition,
text_pattern = NULL
)
domain |
Either "text" or "enumerated". |
definition |
If domain is "text", provide a word description of your attribute. If the domain is "enumerated", provide a list of the attributes code definitions. |
text_pattern |
Optional. Only needed if applicable and the domain given is "text". |
# Nominal(text):
## Not run: create_attribute(attribute_name = "site_id",
attribute_definition = "Site id as used in sites table",
measurement_scale = EMLaide::measurement_scale$nominal,
domain= "text",
definition = "Site id as used in sites table.")
## End(Not run)
# Nominal(enumerated):
code_def_1 = list(code = "yes", definition = "has been captured previously")
code_def_2 = list(code = "no", definition = "has not been captured previously")
code_definition = list(code_def_1, code_def_2)
## Not run: create_attribute(attribute_name = "Recap",
attribute_definition = "Has the Turtle been captured and tagged previously",
measurement_scale = EMLaide::measurement_scale$nominal,
domain = "enumerated",
definition = code_definition)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.