defineQualitativeScaleMethod.Rd
A general function to define a method for measurements of a given subject in a qualitative (i.e. categorical) scale.
defineQualitativeScaleMethod(
name,
description,
subject,
codes,
citationString = "",
DOI = "",
definitions = NULL
)
String with the name of the method.
String describing the method.
A string to identify the subject.
A character vector of class codes.
A string with the bibliographic reference for the method.
A string with the DOI the resource related to citationString
.
A character vector of class definitions.
an object of class VegXMethodDefinition
Other define measurement functions:
defineOrdinalScaleMethod()
,
defineQuantitativeScaleMethod()
,
predefinedMeasurementMethod()
#Qualitative scale with three levels
defineQualitativeScaleMethod("scale1", "Description for scale1", "subject1",
codes = c("A", "B", "C"))
#> An object of class "VegXMethodDefinition"
#> Slot "name":
#> [1] "scale1"
#>
#> Slot "description":
#> [1] "Description for scale1"
#>
#> Slot "citationString":
#> [1] ""
#>
#> Slot "DOI":
#> [1] ""
#>
#> Slot "subject":
#> [1] "subject"
#>
#> Slot "attributeType":
#> [1] "qualitative"
#>
#> Slot "attributes":
#> $`1`
#> $`1`$type
#> [1] "qualitative"
#>
#> $`1`$code
#> [1] "A"
#>
#>
#> $`2`
#> $`2`$type
#> [1] "qualitative"
#>
#> $`2`$code
#> [1] "B"
#>
#>
#> $`3`
#> $`3`$type
#> [1] "qualitative"
#>
#> $`3`$code
#> [1] "C"
#>
#>
#>