GetAttr {RQDA}R Documentation

Attributes

Description

Get the attributes of case or file.

Usage

GetAttr(type = c("case", "file"),attrs = svalue(.rqda$.AttrNamesWidget))

ShowSubset(x,...)

Arguments

type Type of attributes.
attrs character vector, subset of attributes to retrieve.
x an object from GetAttr
... Not used currently.

Details

You can add and modify the attributes of cases or files. GetAttr returns this attributes as a data frame.

Sometimes, you only want to show a subset of files or cases according to their attributes. You can do the subset operation of the result from GetAttr and pass it to ShowSubset.

Value

For GetAttr, when type is "case", it is a data frame with class of "CaseAttr"; when type is "file", it is a data frame with class of "FileAttr". For ShowSubset, no value is returned, the side-effect is to change the file list or case list in respective widget.

Note

All the variables in the data frame is of class "character", you need to convert to suitable class when conduct statistical analysis.

Author(s)

HUANG Ronggui

Examples

## Not run: 
attr <- GetAttr("case")
ShowSubset(subset(attr,attribute1==1)) ## assuming there is a variable
named atttribute1 in attr.
## End(Not run)

[Package RQDA version 0.1-8 Index]