Description Usage Arguments Details Value Author(s) References Examples
A flag is is an integer that may be imputed as zero where missing. These functions implement the class. Other functions may do the imputation as necessary.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## S3 method for class 'flag'
x[..., drop = TRUE]
## S3 method for class 'flag'
x[[..., drop = TRUE]]
f(x, ...)
## S3 method for class 'flag'
as.character(x, ...)
## S3 method for class 'flag'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## Default S3 method:
as.flag(x, ...)
## S3 method for class 'flag'
as.flag(x, ...)
## S3 method for class 'flag'
c(..., recursive = FALSE)
## S3 method for class 'flag'
format(x, ...)
## S3 method for class 'flag'
print(x, ...)
## S3 method for class 'flag'
rep(x, ...)
## S3 method for class 'flag'
xtfrm(x)
|
x |
the flag object, or something coercible to integer |
... |
extra arguments, ususally ignored |
drop |
coerce to lowest possible dimension |
row.names |
row names for the result |
optional |
Optional to use the object name as the column name? |
recursive |
unused, present for historical reasons |
Typically a flag takes on the values of zero and 1, and is used
to indicate the presence of a particular condition. Other functions
are welcome to impute NA
s as 0. Methods are defined for common classes.
f
is an alias to as.flag
.
flag
Tim Bergsma
http://metrumrg.googlecode.com
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.