View source: R/attribute-element.R
create_ordinal | R Documentation |
Create an attribute in Ordinal Measurement Scale
create_ordinal(
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. Examples are seen in exported documentation. |
text_pattern |
Optional. Only needed if applicable and the domain given is "text". |
# Ordinal(text):
## Not run: create_attribute(attribute_name = "LatitudeDD",
attribute_definition = "Latitude",
measurement_scale = EMLaide::measurement_scale$ordinal,
domain= "text",
definition = "Latitude")
## End(Not run)
# Ordinal(enumerated):
code_def_0 = list(code = "0", definition = "0 insects per meter of branch")
code_def_1 = list(code = "1", definition = "1-10 insects per meter")
code_def_2 = list(code = "2", definition = "11 – 100 insects per meter")
code_def_3 = list(code = "3", definition = "more than 100 insects per meter")
code_definition = list(code_def_0, code_def_1, code_def_2, code_def_3)
## Not run: create_attribute(attribute_name = "hwa",
attribute_definition = "Hemlock woolly adelgid density per meter of branch",
measurement_scale = EMLaide::measurement_scale$ordinal,
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.