GetAttr {RQDA} | R Documentation |
Get the attributes of case or file.
GetAttr(type = c("case", "file"),attrs = svalue(.rqda$.AttrNamesWidget)) ShowSubset(x,...)
type |
Type of attributes. |
attrs |
character vector, subset of attributes to retrieve. |
x |
an object from GetAttr |
... |
Not used currently. |
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
.
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.
All the variables in the data frame is of class "character", you need to convert to suitable class when conduct statistical analysis.
HUANG Ronggui
## Not run: attr <- GetAttr("case") ShowSubset(subset(attr,attribute1==1)) ## assuming there is a variable named atttribute1 in attr. ## End(Not run)