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
)

Arguments

name

String with the name of the method.

description

String describing the method.

subject

A string to identify the subject.

codes

A character vector of class codes.

citationString

A string with the bibliographic reference for the method.

DOI

A string with the DOI the resource related to citationString.

definitions

A character vector of class definitions.

Value

an object of class VegXMethodDefinition

See also

Examples


#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"
#> 
#> 
#>