R Attributes for Q Objects
		
		
		
		Jump to navigation
		Jump to search
		
This page is currently under construction, or it refers to features which are under development and not yet available for use.
This page is under construction. Its contents are only visible to developers!
This page contains information about attributes that are available in R when referring to objects in Q.
In R, an attribute of an object is obtained using the attr() function with the following syntax:
attr(object_name, "attribute_name")
The attribute_name must be surrounded in quotes.
To view a list of attributes that are available for a given object, use the attributes() function with the following syntax:
attributes(object_name)
Tables
| Attribute name | Class | Description | 
|---|---|---|
| R Outputs | QROutputs$item.name | QROutputs$r.output.3 | 
| Tables | QTables$item.name | QTables$age.by.gender.3 | 
| Variables | Colas.sav$variable.name or Colas.sav$Variables$variable.name | Colas.sav$d1 or Colas.sav$Variables$d1 | 
| Questions | Colas.sav$question.name, Colas.sav$Questions$question.name or Colas.sav$VariableSets$variable.set.name | Colas.sav$Age, Colas.sav$Questions$Age or Colas.sav$VariableSets$Age |